perm filename POX.XGP[UP,DOC]7 blob
sn#250849 filedate 1976-12-05 generic text, type T, neo UTF8
/FONT#0=NGR30/FONT#2=BDI25/FONT#3=NGR25/FONT#4=NGB25[ 1,REM]/FONT#5=NGR20[ 1,REM]/FONT#6=XMAS25/FONT#15=KBD25/FONT#12=75224X[ 1,REM]/FONT#1=FIX25/FONT#7=CLAR30/FONT#9=GRK30/FONT#14=GRKL50/TMAR=200/PMAR=1992/BMAR=2
␈↓ ¬ε␈β↓H␈↓P␈↓βrototype␈↓ O␈↓βverlay␈↓ X␈↓βerographics
␈↓ ¬
␈β↓k␈↓β(name suggested by R.W.Gosper)
␈↓ β;␈βα ␈↓βBy Robert Elton Maas, with revisions by Ralph E. Gorin and R.E.M.
␈↓ ∧?␈βα'␈↓α(POX writeup, last edited 1976 DEC 5 6:12)
␈↓ α_␈βαc␈↓βPOX␈αis␈αa␈αprogram␈αfor␈αmaking␈αdocuments␈αthat␈αtake␈αadvantage␈αof␈αthe␈αspecial␈αfeatures␈αavailable␈αon
␈↓ ↓H␈ββ↓␈↓βthe␈αXerox␈αGraphics␈αPrinter␈α(XGP).␈α⊗The␈αspecial␈αfeatures␈αthat␈αboth␈αPOX␈α
and␈α
PUB␈α
provide␈α
are␈α
mainly␈α
font
␈↓ ↓H␈ββ∨␈↓βswitching,␈α⊂text␈α⊂justification␈α⊂and␈α∂automatic␈α∂"every␈α∂page"␈α∂actions␈α∂such␈α∂as␈α∂page␈α∂numbering.␈α≡POX␈α∂also
␈↓ ↓H␈ββ=␈↓βprovides␈α∞vectors,␈α∞positioning␈α∞of␈α∞text␈α∞etc.␈α∞to␈α∞an␈α∞accuracy␈α∞of␈α
1/200␈α
inch,␈α
composition␈α
of␈α
text␈α
etc.␈α
into
␈↓ ↓H␈ββ[␈↓β"overlays"␈αwhich␈αcan␈αbe␈αcopied␈αand␈αprocessed␈αwithout␈αlosing␈αthe␈αrelative␈αpositions␈αof␈αthe␈αcomponents
␈↓ ↓H␈ββy␈↓β(somewhat␈αlike␈αsets␈αin␈αSUDS,␈αthe␈αHelliwell␈αdrawing␈αprogram).␈α⊗POX␈αdoes␈α
not␈α
yet␈α
provide␈α
text␈α
responses
␈↓ ↓H␈β∧↔␈↓βor␈α⊃footnotes.␈α"It␈α⊃is␈α⊃possible␈α⊃to␈α⊂set␈α⊂up␈α⊂cross-references␈α⊂or␈α⊂indexes/contents␈α⊂by␈α⊂means␈α⊂of␈α⊂macros,
␈↓ ↓H␈β∧5␈↓βproviding␈α
that␈α
there␈α
are␈α
no␈α
forward␈αreferences␈α(i.e.␈αeverything␈αis␈αdefined␈αbefore␈αit␈αis␈αused␈α--␈αPOX␈αis
␈↓ ↓H␈β∧S␈↓βone-pass␈α∞only).␈α≤Neither␈α∞POX␈α∞nor␈α∞PUB␈α∞can␈α∞yet␈α∞be␈α∞used␈α∞interactively␈α
like␈α
GEOMED␈α
and␈α
SUDS,␈α
and␈α
no
␈↓ ↓H␈β∧q␈↓βprogram␈α∩yet␈α∩exists␈α∩for␈α∩viewing␈α∩the␈α∩final␈α∩output␈α∩on␈α∩displays␈α∩to␈α∩check␈α∩for␈α∩visual␈α∩errors␈α∩prior␈α⊃to
␈↓ ↓H␈β¬∂␈↓∂XSPOOL␈↓βing.
␈↓ α_␈β¬-␈↓βWhen␈αboth␈αPOX␈αand␈αPUB␈αprovide␈αthe␈αdesired␈αfeatures,␈αi.e.␈αnone␈αof␈αthe␈αfeatures␈αthat␈αonly␈αone␈αof
␈↓ ↓H␈β¬K␈↓βthem␈α∪has␈α∪are␈α∪needed,␈α∪POX␈α∪is␈α∪usually␈α∪preferred␈α∪because␈α∪of␈α∪its␈α∪greater␈α∪speed.␈α%For␈α∩example,␈α∩a
␈↓ ↓H␈β¬i␈↓βbenchmark␈α∞text␈α∞consisting␈α∞of␈α∞10k␈α∞of␈α∞fully-justified␈α∞text␈α∞took␈α∞42.5␈α∞seconds␈α
of␈α
runtime␈α
using␈α
PUB,␈α
4.5
␈↓ ↓H␈βεπ␈↓βseconds␈αusing␈αPOX␈αwithout␈αthe␈αsimulator,␈α
and␈α
10.9␈α
seconds␈α
using␈α
POX␈α
with␈α
the␈α
simulator␈α
(see␈α
below␈α
for
␈↓ ↓H␈βε%␈↓βexplanation␈α
of␈α
the␈α
simulator).
␈↓ α_␈βεC␈↓βPOX␈αhas␈αat␈αleast␈αone␈αintractable␈α
bug␈α
--␈α
there␈α
is␈α
a␈α
list␈α
of␈α
this␈α
bug␈α
and␈α
some␈α
others␈α
recently␈α
fixed,
␈↓ ↓H␈βεa␈↓βin␈α∞a␈α∞later␈α∞section␈α∞of␈α∞this␈α∞writeup␈α∞--␈α∞references␈α∞to␈α∞these␈α∞bugs␈α∞are␈α∞made␈α∞from␈α∞various␈α∞places␈α∞in␈α
this
␈↓ ↓H␈βε␈␈↓βwriteup,␈αin␈αthe␈αformat␈α"␈↓αsee␈αbug#n␈↓β"␈αwhere␈αn␈αis␈αthe␈αnumber␈αof␈α
the␈α
bug␈α
in␈α
that␈α
list␈α
--␈α
users␈α
should␈α
report
␈↓ ↓H␈βπ≥␈↓βany␈α∞bugs␈α∞they␈α∞find␈α∞that␈α∞are␈α∞not␈α∞in␈α∞that␈α∞list,␈α∞or␈α∞which␈α∞are␈α∞listed␈α∞as␈α∞"fixed"␈α
--␈α
errors␈α
in␈α
this␈α
writeup
␈↓ ↓H␈βπ;␈↓βshould␈αalso␈αbe␈αreported␈αbefore␈αtoo␈αmany␈αunwary␈αusers␈αsee␈αthem␈αand␈αexpect␈αPOX␈αto␈αdo␈αthings␈αit␈αcan't
␈↓ ↓H␈βπY␈↓βdo.
␈↓ α_␈βλ∃␈↓βPOX␈αtakes␈αa␈αfile␈αas␈αinput␈αand␈αproduces␈αan␈αoutput␈αfile␈αthat␈αis␈αsuitable␈αfor␈αspooling␈αwith␈αthe␈αXGP
␈↓ ↓H␈βλ3␈↓βspooler␈α
(␈↓∂XSPOOL␈↓β␈α
command).␈α_The␈αinput␈αfile␈αcontains␈αinstructions␈αto␈αPOX␈αand␈αthe␈αtext␈αof␈αthe␈αdocument.
␈↓ ↓H␈βλQ␈↓βPOX␈α∂takes␈α∂character␈α∂sequences␈α∞as␈α∞commands.␈α≤Each␈α∞command␈α∞sequence␈α∞is␈α∞preceded␈α∞by␈α∞a␈α∞character,
␈↓ ↓H␈βλo␈↓βcalled␈α∩the␈↓α␈α∩Brick␈α∩Character␈↓β.␈α"The␈α⊃first␈α⊃character␈α⊃in␈α⊃the␈α⊃file␈α⊃(ignoring␈α⊃TV␈α⊃directories␈α⊃and␈α⊃SOS␈α⊃line
␈↓ ↓H␈β
␈↓βnumbers)␈α
is␈α
taken␈α
by␈α
POX␈α
as␈α
the␈α
escape␈α
character␈α
(See␈α
note␈α
1).␈α~Thus,␈α
the␈α
user␈α
gets␈α
to␈α
specify␈αthe
␈↓ ↓H␈β +␈↓βescape␈α
character.␈α~The␈α
escape␈αcharacter␈αcan␈αbe␈αarbitrary,␈αbut␈αreason␈αdictates␈αthat␈αit␈αshould␈αbe␈αsome
␈↓ ↓H␈β I␈↓βcharacter␈α∂that␈α∂appears␈α∂infrequently␈α∂(or␈α∂not␈α∂at␈α∂all)␈α∂in␈α∂the␈α∂text␈α∂of␈α∂the␈α∂document.␈α≡The␈α∂most␈α∂popular
␈↓ ↓H␈β e␈↓βchoices␈α∂for␈α∂the␈α∂escape␈α∂character␈α∂are␈α∂\␈α∂_␈α∂and␈α∂$.␈α≡In␈α∂the␈α∞remainder␈α∞of␈α∞this␈α∞document,␈α∞the␈α∞symbol␈↓␈α∞1
␈↓ ↓H␈β
¬␈↓β(pronounced␈α"brick"␈α--␈αyou␈αwon't␈αfind␈αit␈αon␈αyour␈αkeyboard␈α--␈αit's␈αASCII␈α
061␈α
in␈α
font␈α
75224X.FNT[1,REM]
␈↓ ↓H␈β
#␈↓βif␈α∩you␈α∩really␈α∩want␈α∩to␈α∩know␈α∩how␈α∩I␈α∩generated␈α∩it␈α∩in␈α⊃this␈α⊃writeup)␈α⊃represents␈α⊃your␈α⊃current␈α⊃Escape
␈↓ ↓H␈β
A␈↓βCharacter,␈α∂whatever␈α∂it␈α∂may␈α∂be␈α∂at␈α∂the␈α∞moment;␈α∞however,␈α∞in␈α∞some␈α∞examples␈α∞below␈α∞the␈α∞actual␈α∞escape
␈↓ ↓H␈β
←␈↓βcharacter␈α
will␈α
be␈α
shown␈α
rather␈α
than␈α
the␈α
brick␈α
symbol.
␈↓ α_␈β
⎇␈↓βI␈αhaven't␈αreally␈αdecided␈αwhat␈αto␈α
call␈α
these␈α
commands,␈α
so␈α
until␈α
I␈α
make␈α
a␈α
decision␈α
you␈α
may␈α
find␈α
that
␈↓ ↓H␈β≠␈↓βat␈αsome␈αplaces␈αin␈αthis␈αwriteup␈αthey␈αare␈αcalled␈α"escape␈αcommands",␈α
at␈α
other␈α
places␈α
"brick␈α
commands"␈α
or
␈↓ ↓H␈β9␈↓β"POX␈α∞commands".␈α~The␈α
commands␈α
the␈α
XGP␈α
understands,␈α
beginning␈α
with␈α
an␈α
ASCII␈α
177␈α
which␈α
is␈α
rubout,
␈↓ ↓H␈βW␈↓βhave␈α∞entirely␈α∞different␈α∞syntax␈α∞even␈α∞for␈α∞commands␈α∞that␈α∞perform␈α∞almost␈α∞the␈α∞same␈α∞function␈α∞as␈α
a␈α
brick
␈↓ ↓H␈βu␈↓βcommand.␈α⊗These␈αare␈αreferred␈α
to␈α
as␈α
"XGP␈α
escape␈α
sequences"␈α
or␈α
"rubout-style␈α
commands"␈α
to␈α
distinguish
␈↓ ↓H␈β∪␈↓βthem␈α∞from␈α∞brick␈α∞commmands.␈α≤These␈α∞XGP␈α∞escape␈α
sequences␈α
are␈α
normally␈α
present␈α
only␈α
in␈α
the␈α
output
␈↓ ↓H␈β1␈↓βfrom␈α⊂POX␈α⊂and␈α⊂PUB,␈α⊂except␈α⊂when␈α⊂POX␈α⊂is␈α⊂used␈α⊂as␈α⊂post-processor␈α∂for␈α∂some␈α∂other␈α∂program,␈α∂such␈α∂as
␈↓ ↓H␈βO␈↓βXLITER.␈α⊗For␈αthis␈αand␈αsimilar␈αuse,␈αPOX␈αcan␈αaccept␈αcertain␈αsystem␈αXGP␈αescape␈αsequences␈αat␈αsome␈α
places
␈↓ ↓H␈βm␈↓βin␈αthe␈αinput␈αfile.␈↓¬␈α⊗What␈αPOX␈αdoes␈αis␈αto␈αconvert␈αthese␈αescape␈αsequences␈αinto␈αthe␈αequivalent␈αbrick␈αcommand␈αupon␈αinput,␈αthen␈αto
␈↓ ↓H␈β
∂␈↓¬process␈α∞the␈α∞brick␈α
command␈α
in␈α
the␈α
usual␈α
way.␈α~Thus␈α
the␈α
XLITER␈α
program␈α
can␈α
transliterate␈α
phonemes␈α
into␈α
cyrillic␈α
characters␈α
with
␈↓ ↓H␈β
-␈↓¬rubout-style␈α
font␈α
selects␈α
(to␈α
allow␈α
direct␈α
listing␈α
on␈α
the␈α
XGP␈α
if␈α
desired),␈α
and␈α
POX␈α
can␈α
treat␈α
the␈α
cyrillic␈α
as␈α
text,␈α
treat␈α
the␈α
font-selects
␈↓ ↓H␈β
E␈↓¬generated␈α in␈αλthe␈αλprocess␈αλof␈αλtransliteration␈αλas␈↓␈αλ1␈↓∂F␈↓¬...␈αλcommands,␈αλand␈αλprocess␈αλother␈αλbrick␈αλcommands␈αλthat␈αλwere␈αλin␈αλthe␈αλoriginal␈αλtext␈αλfile␈αλ(that
␈↓ ↓H␈β
i␈↓¬were␈α
passed-as-is␈α
by␈α
XLITER).
␈↓ α_␈β∞!␈↓βTo␈α
run␈α
POX,␈α
use␈α
the␈α
system␈α
command␈↓∂␈α
R␈α
POX␈↓β␈α
(or␈↓∂␈α
RU␈α
POX[1,REM]␈↓β␈α
if␈αyou␈αwant␈αto␈αuse␈αthe␈αlatest
␈↓ ↓H␈β∞?␈↓βexperimental␈α∩version␈α∩of␈α∩POX␈α∩if␈α∩one␈α∩exists).␈α$POX␈α∩wants␈α⊃to␈α⊃see␈α⊃a␈α⊃command␈α⊃of␈α⊃the␈α⊃form:␈↓¬␈α⊃<OUTPUT
␈↓ ↓H␈β∞]␈↓¬FILE>␈↓∂←␈↓¬<INPUT␈αFILE>␈↓β.␈α_If␈αthe␈↓¬␈α<OUTPUT␈αFILE>␈↓β␈αterm␈αis␈αomitted␈α(the␈αarrow␈αis␈αthen␈αoptional)␈αthen␈αthe␈αoutput␈αfile
␈↓ ↓H␈β∞{␈↓βwill␈α
have␈α
the␈α
same␈α
name␈α
as␈α
the␈α
input␈α
file,␈α
and␈α
"␈↓∂.XGP␈↓β"␈α
extension.␈α∀If␈α
only␈α
the␈α
extension␈α
of␈α
the␈α
output␈α
file
␈↓ ↓H␈β∂→␈↓βis␈α∂omitted,␈α∂"␈↓∂.XGP␈↓β"␈α∞will␈α∞be␈α∞used.␈α≤If␈α∞the␈α∞extension␈α∞of␈α∞the␈α∞input␈α∞file␈α∞is␈α∞omitted␈α∞and␈α∞the␈α∞period␈α∞is␈α∞also
␈↓ ↓H␈β∂7␈↓βomitted,␈α"␈↓∂.POX␈↓β"␈αis␈αassumed,␈αand␈αif␈αthat␈αfile␈αisn't␈αfound␈αthen␈αnull␈αextension␈αis␈αtried.␈α_If␈αthe␈αextension␈αis
␈↓ ∞␈↓α 1␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 2␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βomitted␈α
but␈α
the␈α
period␈αis␈αretained,␈αonly␈αthe␈αnull␈αextension␈αis␈αtried.␈α_--␈αAlternately,␈αinstead␈αof␈αdoing␈↓∂␈αR
␈↓ ↓H␈β↓f␈↓∂POX␈↓β,␈αthe␈αsystem␈αcommand␈↓∂␈αPOX␈↓β␈αmay␈αbe␈αfollowed␈αby␈αthe␈↓¬␈α<OUTPUT␈αFILE>␈↓∂←␈↓¬<INPUT␈αFILE>␈↓β␈αsyntax␈αall␈αon␈αone␈αline.
␈↓ ↓H␈βα∧␈↓β--␈αLater␈αif␈αyou␈αhaven't␈αlogged␈αout␈αand␈αhave␈αthe␈αsame␈αalias,␈αyou␈αcan␈αmake␈αPOX␈αuse␈αthe␈αsame␈αcommand,
␈↓ ↓H␈βα"␈↓βwithout␈α⊂retyping␈α⊂it,␈α⊂by␈α⊂starting␈α∂POX␈α∂at␈α∂the␈α∂RPG␈α∂starting␈α∂address.␈α≡For␈α∂example,␈α∂you␈α∂can␈α∂say␈α∂"␈↓∂GET
␈↓ ↓H␈βα@␈↓∂SYS:POX␈↓β"␈α
then␈α
say␈α
"␈↓∂S␈α
+1␈↓β",␈α
or␈α
from␈α
E␈α
you␈α
can␈α
give␈α
the␈α
extend-mode␈α
command␈α
"␈↓∂RU␈α
POX[1,3]␈↓β".
␈↓ α_␈βα↑␈↓βIf␈αall␈αis␈αwell␈αwith␈αthe␈αinput␈αfile,␈αPOX␈αwill␈αrun␈αand␈αproduce␈αan␈αoutput␈αfile␈αsuitable␈αfor␈↓∂␈αXSPOOL␈↓βing.
␈↓ ↓H␈βα|␈↓βIf␈αyou␈αare␈αat␈αa␈αlocal␈αdisplay,␈αPOX␈α
will␈α
load␈α
the␈α
appropriate␈↓∂␈α
XSPOOL␈↓β␈α
command␈α
into␈α
your␈α
line␈α
editor,␈α
so␈α
all
␈↓ ↓H␈ββ~␈↓βyou␈α
have␈α
to␈α
do␈α
is␈α
type␈α
return␈α
to␈α
spool␈α
the␈α
file.
␈↓ ¬;␈ββQ␈↓Sample POX input file
␈↓ βn␈ββo␈↓(I assume you will have your files in E/TV format)
␈↓ ↓H␈β∧0␈↓∂COMMENT ⊗ VALID 00002 PAGES
␈↓ ↓H␈β∧N␈↓∂C REC PAGE DESCRIPTION
␈↓ ↓H␈β∧l␈↓∂C00001 00001
␈↓ ↓H␈β¬
␈↓∂C00002 00002␈↓ βH\|\\M0FIX25\M1NGR25\ This is a comment, after the brick-semicolon
␈↓ ↓H␈β¬(␈↓∂C00004 ENDMK
␈↓ ↓H␈β¬F␈↓∂C⊗;
␈↓ ∧l␈β¬h␈↓¬<FORMFEED> i.e. page mark after directory page
␈↓ ↓H␈βεα␈↓∂\|\\M0FIX25;\M1NGR25;\; This is a comment, after the brick-semicolon
␈↓ ↓H␈βε ␈↓∂\; Font #0 is here in case title pages needed -- If we
␈↓ ↓H␈βε>␈↓∂\; don't explicitly specify it here, the system will invent a font#0.
␈↓ ↓H␈βε\␈↓∂\←L\+=100;\→L\; Move left margin in by 1/2 inch
␈↓ ↓H␈βεz␈↓∂\F1\CTITLE OF THIS DOCUMENT IS HERE
␈↓ ↓H␈βπ6␈↓∂\J␈↓ αHThis is a sample document, with justified text, and a centered
␈↓ ↓H␈βπT␈↓∂title. It demonstrates to the person using POX for the first time,
␈↓ ↓H␈βπr␈↓∂just what is involved in a simple POX manuscript (borrowing terminology
␈↓ ↓H␈βλ⊂␈↓∂from the PUB manual, in which a "manuscript" is the uncompiled form
␈↓ ↓H␈βλ.␈↓∂you see here and a "document" is the compiled file all
␈↓ ↓H␈βλL␈↓∂ready to output to some device such as lineprinter or XGP). If you
␈↓ ↓H␈βλj␈↓∂have any doubt what the output on the XGP would look like if
␈↓ ↓H␈β λ␈↓∂this document were actually compiled etc., I suggest you create
␈↓ ↓H␈β &␈↓∂a text file with E or SOS and copy this page (after the formfeed
␈↓ ↓H␈β D␈↓∂above, until the end-of-file location below), and actually
␈↓ ↓H␈β b␈↓∂compile it and XSPOOL it.\.
␈↓ ε␈β
∧␈↓¬<END OF FILE>
␈↓ βZ␈β
7␈↓THIS WRITEUP -- ORGANIZATION, MODES, NOTATION
␈↓ α_␈β
Z␈↓βEach␈α
section␈α
in␈αthis␈αwriteup␈αthat␈αdescribes␈αbrick-commands␈αconsists␈αof␈αthe␈αfollowing:␈α_Summary
␈↓ ↓H␈β
x␈↓βof␈αwhat␈αit's␈αall␈αused␈αfor,␈αsyntax␈α
of␈α
each␈α
command,␈α
the␈α
corresponding␈α
descriptions␈α
of␈α
what␈α
function␈α
each
␈↓ ↓H␈β⊗␈↓βcommand␈αperforms,␈αexamples␈αof␈αthe␈αuse␈αof␈αthe␈αcommands␈αin␈αthis␈αwriteup␈α
itself␈α
with␈α
general␈α
references
␈↓ ↓H␈β4␈↓βas␈α⊃to␈α⊃where␈α⊃to␈α⊃look␈α⊃to␈α⊃see␈α⊃the␈α⊃effect␈α⊂generated,␈α⊂additional␈α⊂examples␈α⊂of␈α⊂use␈α⊂(input␈α⊂text␈α⊂followed
␈↓ ↓H␈βR␈↓βimmediately␈α
by␈α
the␈α
effect␈α
generated␈α
in␈α
output).
␈↓ α_␈β∞␈↓βSome␈α⊂brick-commands␈α⊂will␈α⊂put␈α∂the␈α∂command␈α∂scanner␈α∂in␈α∂a␈α∂special␈α∂mode␈α∂until␈α∂such␈α∂time␈α∂as␈α∂an
␈↓ ↓H␈β,␈↓βappropriate␈α"get␈αout␈αof␈αthis␈αmode"␈αcharacter␈αor␈αbrick-command␈αis␈αseen,␈αat␈αwhich␈αtime␈αit␈αwill␈αreturn␈αto
␈↓ ↓H␈βJ␈↓βits␈αprevious␈αmode.␈α⊗Initially␈α(after␈αeating␈αthe␈αdirectory␈αpage␈αand␈αthe␈αfirst␈αcharacter␈αor␈αtwo␈αof␈α
the␈α
input
␈↓ ↓H␈βh␈↓βfile)␈α
the␈αcommand␈αscanner␈αis␈αin␈α"PASS-AS-IS"␈αmode␈αwhich␈αmeans␈αthat␈αcarriage-return␈αputs␈αyou␈αat␈αthe
␈↓ ↓H␈β
ε␈↓βleft␈α∞margin,␈α∞linefeed␈α∞moves␈α∞down␈α∞to␈α∞the␈α∞next␈α∞line,␈α∞formfeed␈α
completes␈α
the␈α
page␈α
and␈α
cuts␈α
the␈α
paper,
␈↓ ↓H␈β
$␈↓βbrick␈α
causes␈α
a␈α
command␈α
to␈α
be␈α
expected,␈α
and␈α
all␈α
other␈αcharacters␈αare␈αcopied␈αto␈αthe␈αoutput␈αfile␈αin␈αthe
␈↓ ↓H␈β
B␈↓βcurrently-selected␈αfont.␈α_The␈αeffect␈αis␈αthat␈αtext␈αis␈αaligned␈αagainst␈αthe␈αleft␈αmargin␈αunless␈αyou␈αexplicitly
␈↓ ↓H␈β
`␈↓βdo␈α
a␈α
column-select␈α
to␈α
cause␈α
it␈α
to␈α
be␈α
put␈α
elsewhere.
␈↓ α_␈β
}␈↓βThe␈α∞other␈α∞modes␈α∞you␈α∞can␈α∞get␈α∞into␈α
are␈α
justify,␈α
centerify/rightify,␈α
copy␈α
text␈α
into␈α
a␈α
macro␈α
body,
␈↓ ↓H␈β∞≤␈↓βevaluate␈α∂and␈α∂copy␈α∂text␈α∂into␈α∂an␈α∂overlay␈α∂body,␈α∂evaluate␈α∂and␈α∂copy␈α∂text␈α∂into␈α∂a␈α∞macro␈α∞argument␈α∞body,
␈↓ ↓H␈β∞:␈↓βignore␈α
until␈α
linefeed,␈α
ignore␈α
until␈α
formfeed,␈αignore␈αnonprinting␈αcharacters␈αuntil␈αsemicolon,␈αand␈αparse␈αa
␈↓ ↓H␈β∞X␈↓βbrick␈α∞command.␈α≤Before␈α∞each␈α∞command␈α∞description␈α∞is␈α∞a␈α∞list␈α∞of␈α∞which␈α∞modes␈α∞you␈α
can␈α
be␈α
in␈α
when␈α
the
␈↓ ↓H␈β∞v␈↓βcommand␈αis␈αscanned.␈α_The␈αcomplete␈αlist␈αis␈α(U␈αJ␈αCR␈αo␈αA)␈αwhich␈αrefer␈αto␈αUnjustified␈α(normal␈αpass-as-is),
␈↓ ↓H␈β∂∩␈↓βJustify,␈α∂Center/Rightify,␈α∂atomic␈α∂text␈α∂Overlay␈α∂(␈↓1␈↓∂o␈↓β␈α∂command)␈α∂and␈α∂Argument␈α∂to␈α∂a␈α∂macro␈α∂or␈α∂text␈α∂to␈α∂an
␈↓ ↓H␈β∂2␈↓βalternate␈α
output␈α
file,␈α
respectively␈α
(in␈α
the␈αother␈αmodes,␈αnamely␈αdefine␈αthe␈αbody␈αof␈αa␈αmacro,␈αand␈αparse
␈↓ ∞␈↓α 2␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 3␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βvarious␈α
commands,␈α
the␈α
brick␈α
character␈α
is␈α
treated␈α
as␈α
text␈α
rather␈α
than␈α
initiating␈α
a␈α
brick-command).
␈↓ α_␈βα∧␈↓βMany␈α⊂places␈α⊂in␈α⊂this␈α⊂writeup␈α⊂it␈α⊂is␈α⊂necessary␈α⊂to␈α⊂show␈α⊂a␈α⊂string␈α∂of␈α∂text␈α∂that␈α∂looks␈α∂as␈α∂much␈α∂as
␈↓ ↓H␈βα"␈↓βpossible␈α
like␈αwhat␈αthe␈αuser␈αwould␈αsee␈αwhen␈αediting␈αhis␈αsource␈αdocument.␈α_(I.e.,␈αin␈αexamples␈αof␈αhow␈αto
␈↓ ↓H␈βα@␈↓βdo␈αthings,␈αand␈αin␈αthe␈αsyntax␈αdescriptions␈αwhere␈αa␈αparticular␈αcharacter␈αoccurs␈αas␈αpart␈αof␈αthe␈αcommand.)
␈↓ ↓H␈βα↑␈↓βFor␈α∞this␈α∞purpose␈α∞the␈α∞font␈α∞KBD25␈α∞is␈α∞used,␈α
which␈α
has␈α
fixed-width␈α
characters␈α
that␈α
look␈α
very␈α
much␈α
like
␈↓ ↓H␈βα|␈↓βthose␈α⊗on␈α⊗local␈α⊗keyboards␈α⊗and␈α⊗displays␈α⊗and␈α⊗on␈α⊗our␈α⊗line-printer.␈α*Here␈α∃is␈α∃the␈α∃complete␈α∃7-bit
␈↓ ↓H␈ββ~␈↓βStanford-ASCII␈α
character␈α
set␈α
in␈α
this␈α
font:
␈↓ ↓H␈ββ8␈↓∂␈↓αβ∧¬επ λ␈ ␈
␈␈
∞∂ ⊂⊃∩∪∀∃⊗↔ _→~≠≤≥≡∨ !"#$%&' ()*+,-./ 01234567 89:;<=>?
␈↓ ↓H␈ββV␈↓∂@ABCDEFG HIJKLMNO PQRSTUVW XYZ[\]↑← `abcdefg hijklmno pqrstuvw xyz{|␈⎇}␈␈
␈↓ ↓H␈ββt␈↓βThe␈α
following␈α
characters,␈αhowever,␈αdon't␈αlook␈αthe␈αsame␈αon␈αour␈αvarious␈αdevices,␈αand␈αusually␈αrepresent
␈↓ ↓H␈β∧∩␈↓βspecial␈α⊃functions␈α⊃rather␈α⊃than␈α⊃normal␈α⊂text,␈α⊂and␈α⊂hence␈α⊂will␈α⊂be␈α⊂represented␈α⊂in␈α⊂a␈α⊂special␈α⊂way␈α⊂in␈α⊂this
␈↓ ↓H␈β∧0␈↓βwriteup:
␈↓ ↓H␈β∧N␈↓βOCTAL␈↓ αKKBD25␈↓ βNIN THIS WRITEUP␈↓ ¬TCOMMENTS
␈↓ ↓H␈β∧l␈↓β000␈↓∂␈↓ αK␈␈↓β␈↓ ¬Tnull, ignored if occurs in source document
␈↓ ↓H␈β¬
␈↓β011␈↓∂␈↓ αK␈ ␈↓¬␈↓ βN<TB>␈↓β␈↓ ¬T(horizontal) tab
␈↓ ↓H␈β¬(␈↓β012␈↓∂␈↓ αK␈
␈↓¬␈↓ βN<LF>␈↓β␈↓ ¬Tline (feed)
␈↓ ↓H␈β¬F␈↓β013␈↓∂␈↓ αK␈↓¬␈↓ βN<VT>␈↓β␈↓ ¬Tvertical-tab
␈↓ ↓H␈β¬d␈↓β014␈↓∂␈↓ αK␈␈↓¬␈↓ βN<FF>␈↓β␈↓ ¬Tform (feed)
␈↓ ↓H␈βεα␈↓β015␈↓∂␈↓ αK␈
␈↓¬␈↓ βN<CR>␈↓β␈↓ ¬T(carriage) return, always followed by ␈↓¬<LF>
␈↓ ↓H␈βε ␈↓β040␈↓∂␈↓ αK ␈↓¬␈↓ βN<SP>␈↓β␈↓ ¬Tspace (bar), usually shown as actual space
␈↓ ↓H␈βε>␈↓β177␈↓∂␈↓ αK␈␈␈↓β␈↓ ¬Trubout, doesn't occur in source-documents
␈↓ α_␈βε\␈↓βThe␈α
following␈α
additional␈α
BNF-style␈α
syntactical␈α
notation␈α
will␈α
be␈α
used␈α
in␈α
this␈α
paper:
␈↓ α_␈βεz␈↓¬<CH>␈↓β␈α
--␈α
any␈α
single␈α
ASCII␈α
character␈α
(representing␈α
data␈α
to␈α
be␈α
copied␈α
to␈α
output)
␈↓ α_␈βπ_␈↓¬<N>␈↓β␈α∩--␈α⊃any␈α⊃one␈α⊃of␈α⊃these␈α⊃characters:␈↓∂␈α⊃0␈α⊃1␈α⊃2␈α⊃...␈α⊃9␈α⊃A␈α⊃B␈α⊃...␈α⊃F␈↓β␈α⊃(representing␈α⊃a␈α⊃logical␈α⊃font
␈↓ ↓H␈βπ6␈↓βnumber␈α
in␈α
IBM␈α
hexadecimal␈α
notation)
␈↓ α_␈βπT␈↓¬<FONT>␈↓β␈α⊃--␈α⊃any␈α⊃font␈α⊃file␈α⊃name,␈α⊃if␈α⊃extension␈α⊂and␈α⊂[p,p]␈α⊂are␈α⊂omitted,␈α⊂default␈↓∂␈α⊂.FNT[XGP,SYS]␈↓β␈α⊂is
␈↓ ↓H␈βπr␈↓βassumed
␈↓ α_␈βλ⊂␈↓¬<NAME>␈↓β␈α∂--␈α∂any␈α∂alphanumeric␈α∂string,␈α∂usually␈α∂required␈α∂not␈α∂to␈α∂be␈α∂the␈α∂null␈α∞string␈α∞(an␈α∞identifier,␈α∞a
␈↓ ↓H␈βλ.␈↓βname␈α
of␈α
an␈α
overlay,␈α
a␈α
macro,␈α
etc.)
␈↓ α_␈βλL␈↓¬<OPEN>␈↓β␈α
--␈α
any␈α
legal␈α
open-nesting␈α
character,␈α
such␈α
as␈↓∂␈α
(␈α
[␈α
{␈α
<␈α
⊂␈↓β,␈α
or␈α
any␈α
legal␈αquoting␈αcharacter,
␈↓ ↓H␈βλj␈↓βsuch␈α
as␈↓∂␈α
"␈α
⊗␈α
↓␈α
/␈α
∂␈α
|
␈↓ α_␈β λ␈↓¬<CLOSE>␈↓β␈α∩--␈α∩the␈α∩matching␈α∩close-nesting␈α∩character,␈α∩such␈α∩as␈↓∂␈α∩)␈α∩]␈α∩}␈α∩>␈α∩⊃␈↓β,␈α∩or␈α∩the␈α⊃same␈α⊃quoting
␈↓ ↓H␈β &␈↓βcharacter,␈α
such␈α
as␈↓∂␈α
"␈α
⊗␈α
↓␈α
/␈α
∂␈α
|
␈↓ α_␈β D␈↓¬<BODY>␈↓β␈α--␈αany␈αstring␈αof␈αtext␈αnot␈αcontaining␈αthe␈αquoting␈αcharacter,␈αor␈αcontaining␈αproperly-nested
␈↓ ↓H␈β b␈↓βopen␈αand␈α
close␈α
nesting␈α
characters␈α
(note␈α
that␈α
all␈α
characters␈α
are␈α
treated␈α
as␈α
text␈α
except␈α
for␈α
the␈α
␈↓&particular␈↓)αβ
␈↓ ↓H␈β
␈↓βquoting␈α
character␈α
or␈α
nesting␈α
pair␈α
selected␈α
in␈α
a␈α
particular␈α
instance,␈α
and␈α
special␈α
characters␈α
like␈α
comma
␈↓ ↓H␈β
≡␈↓βetc.␈α
which␈α
have␈α
special␈α
syntactical␈α
meaning)␈α
--␈α
see␈α
description␈α
in␈α
commands␈α
where␈α
used
␈↓ α_␈β
<␈↓¬<FILNAM>␈↓β␈α
--␈α
any␈α
standard␈α
file␈α
name,␈α
such␈α
as␈↓∂␈α
SUDS.RPH[UP,DOC]␈↓β.
␈↓ ↓d␈β
s␈↓BASIC COMMANDS --- FONT SELECTION, JUSTIFY, CENTERIFY/RIGHTIFY, IGNORE TEXT
␈↓ α_␈β⊗␈↓βThe␈α∂purpose␈α∂of␈α∂these␈α∞commands␈α∞is␈α∞to␈α∞select␈α∞the␈α∞style␈α∞and␈α∞size␈α∞of␈α∞printing␈α∞(for␈α∞example,␈α∞font
␈↓ ↓H␈β4␈↓∂BDI25␈↓β␈α⊂is␈α⊂BODONI-ITALIC,␈α⊂25/200␈α⊂inches␈α⊂high),␈α⊂to␈α⊂enter␈α∂and␈α∂exit␈α∂justify␈α∂mode␈α∂(in␈α∂which␈α∂the␈α∂text␈α∂is
␈↓ ↓H␈βR␈↓βmassaged␈α
so␈α
that␈α
each␈α
line␈α
is␈αas␈αfull␈αof␈αtext␈αas␈αwill␈αfit␈αand␈αextra␈αpartial-spaces␈αare␈αinserted␈αbetween
␈↓ ↓H␈βp␈↓βwords␈α
to␈α
make␈α
the␈α
margins␈α
line␈α
up␈α
exactly),␈α
to␈α
enter␈α
and␈α
exit␈α
rightify␈α
mode␈α
(in␈α
which␈α
text␈α
is␈αaligned
␈↓ ↓H␈β∞␈↓βwith␈α⊃the␈α⊃right-margin␈α⊃but␈α⊃not␈α⊃modified␈α⊃in␈α⊃any␈α⊃other␈α⊃way),␈α⊂to␈α⊂enter␈α⊂and␈α⊂exit␈α⊂centerify␈α⊂mode␈α⊂(like
␈↓ ↓H␈β,␈↓βpass-as-is␈αand␈αrightify␈αexcept␈αeach␈αline␈αis␈αcentered),␈αand␈αto␈αignore␈αportions␈αof␈αthe␈αinput␈αtext␈αthat␈αyou
␈↓ ↓H␈βJ␈↓βdo␈α
not␈α
want␈α
processed.
␈↓ ¬o␈β
ε␈↓βFONT SELECTION
␈↓ ↓H␈β
"␈↓1␈↓∂M␈↓¬<N><FONT>␈↓∂;␈↓β␈↓ β"(U)␈α⊂--␈α⊂causes␈α⊂the␈α⊂font␈α⊂to␈α⊂be␈α⊂loaded␈α⊂into␈α⊂pox␈α∂(and␈α∂later␈α∂into␈α∂the␈α∂system␈α∂XGP
␈↓ β"␈β
B␈↓βservice),␈αand␈αselects␈αit␈αnow␈α--␈αsee␈αnote␈α5␈αand␈αbug␈α2␈α--␈αthis␈αis␈αthe␈αcommand␈αthat
␈↓ β"␈β
`␈↓βsets␈αup␈αthe␈αcorrespondence␈αbetween␈αfonts␈αand␈αthe␈α
numbers␈α
you␈α
will␈α
use␈α
later␈α
to
␈↓ β"␈β
}␈↓βselect␈α∞them␈α∞--␈α∞type␈α∞to␈α∞the␈α∞system␈↓∂␈α
HELP␈α
FONT␈↓β␈α
to␈α
find␈α
out␈α
about␈α
fonts␈α
that␈α
are
␈↓ β"␈β∞≤␈↓βavailable␈α∂and␈α∂how␈α∞to␈α∞peruse␈α∞them␈α∞--␈α∞always␈α∞define␈α∞one␈α∞of␈α∞your␈α∞fonts␈α∞as␈α∞with
␈↓ β"␈β∞:␈↓¬<N>␈↓β=␈↓∂0␈↓β,␈αotherwise␈αthe␈αsystem␈α(which␈αalways␈αinsists␈αon␈αhaving␈αfont#␈↓∂0␈↓β␈αaround␈αeven
␈↓ β"␈β∞X␈↓βif␈α
it␈α
has␈α
to␈α
make␈α
it␈αup)␈αwill␈αwaste␈αyour␈αtime␈αby␈αloading␈αone␈αmore␈αfont␈αthan␈αyou
␈↓ β"␈β∞v␈↓βare␈α
actually␈α
using.
␈↓ ↓H␈β∂∩␈↓1␈↓∂F␈↓¬<N>␈↓β␈↓ β"(U␈αJ␈αCR␈αo)␈α--␈αselects␈αa␈αfont␈αwhich␈αhas␈αalready␈αbeen␈αloaded␈α--␈αall␈αtext␈αafter␈αthis
␈↓ β"␈β∂0␈↓βcommand␈α
before␈α
the␈α
next␈↓␈α
1␈↓∂F␈↓β␈α
or␈↓␈α
1␈↓∂M␈↓β␈α
will␈α
be␈α
in␈α
font#␈↓¬<N>␈↓β.
␈↓ ∞␈↓α 3␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 4␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓1␈↓∂f␈↓¬<N>␈↓β␈↓ β"(U␈αJ␈αCR)␈α--␈αselects␈αa␈αfont␈αfor␈αjust␈α
one␈α
character,␈α
then␈α
back␈α
to␈α
old␈α
font.␈α∀WARNING
␈↓ β"␈β↓h␈↓β--␈α⊃Do␈α⊃not␈α⊃place␈α⊃the␈α⊃brick␈α⊃character␈α⊃immediately␈α⊃after␈α⊂this␈α⊂command␈α⊂because
␈↓ β"␈βαε␈↓βcurrently␈α∞POX␈α∞will␈α∞quote␈α∞the␈α∞brick␈α∞character␈α
in␈α
the␈α
temporary␈α
font␈α
rather␈α
than
␈↓ β"␈βα$␈↓βescaping␈αand␈αquoting␈αthe␈αfirst␈αcharacter␈αof␈αgenerated␈αtext␈αin␈αthe␈αtemporary␈αfont
␈↓ β"␈βαB␈↓β--␈αbecause␈αthis␈αis␈αregarded␈αas␈αa␈αbug␈α
it␈α
might␈α
be␈α
changed␈α
someday␈α
--␈α
currently␈α
it
␈↓ β"␈βα`␈↓βgenerates␈α
a␈α
warning␈α
message.
␈↓ ↓H␈βα}␈↓β(See also push and pop font commands in the section on REGISTER COMMANDS.)
␈↓ εε␈ββ:␈↓βIGNORE TEXT
␈↓ ↓H␈ββV␈↓1␈↓∂␈↓β (vert. tab)␈↓ β"(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
without␈α
changing␈α
mode,␈α
and␈α
without␈α
allowing␈α
EVERYPAGE␈αto␈αbe
␈↓ β"␈ββv␈↓βcalled␈α⊃here,␈α⊃ignore␈α⊃all␈α⊃input␈α⊃text␈α⊃up␈α⊃to␈α⊃and␈α⊃including␈α⊃the␈α⊂next␈α⊂linefeed,␈α⊂thus
␈↓ β"␈β∧∀␈↓βconcatenation␈α⊂of␈α∂input␈α∂lines␈α∂may␈α∂be␈α∂done␈α∂providing␈α∂that␈α∂the␈α∂line-break␈α∂is␈α∂not
␈↓ β"␈β∧2␈↓βinside␈αsome␈αcommand␈αsyntax␈α--␈αif␈αyou␈αdo␈αthis␈αat␈αthe␈αbeginning␈α
of␈α
a␈α
line␈α
it␈α
is␈α
as␈α
if
␈↓ β"␈β∧P␈↓βthe␈α∞whole␈α∞line␈α∞weren't␈α∞there,␈α∞thus␈α
comment␈α
lines␈α
may␈α
be␈α
inserted␈α
anywhere␈α
in
␈↓ β"␈β∧n␈↓βthe␈α
source␈αfile␈αexcept␈αin␈αthe␈αmiddle␈αof␈αmacro-body-definitions␈αand␈αin␈αthe␈αmiddle
␈↓ β"␈β¬␈↓βof␈α⊃the␈α⊃syntax␈α⊃of␈α⊃brick-commands␈α⊃--␈α⊃this␈α⊃command␈α⊃is␈α⊃especially␈α⊃useful␈α⊃inside
␈↓ β"␈β¬*␈↓βjustify␈α∞or␈α∞centerify/rightify␈α∞mode␈α∞to␈α∞create␈α∞a␈α∞very␈α∞long␈α∞word␈α
or␈α
a␈α
complicated
␈↓ β"␈β¬H␈↓βformula␈αor␈αa␈αlong␈αsequence␈αof␈αarithmetic␈αoperations␈αwithout␈αleaving␈αthe␈αmode.␈α∃It
␈↓ β"␈β¬f␈↓βis␈αalso␈αuseful␈αin␈αPASS-AS-IS␈αto␈αavoid␈αcalling␈αEVERYPAGE␈αjust␈αthen,␈αand␈αin␈α
macros
␈↓ β"␈βε∧␈↓βthat␈α
are␈α
likely␈α
to␈α
be␈α
called␈α
from␈α
almost␈α
anywhere.
␈↓ ↓H␈βε ␈↓1␈↓∂N␈↓β␈↓ β"(U␈αJ␈αCR␈αo␈αA)␈α--␈αsame␈αas␈↓␈α1␈↓∂␈↓β␈αfor␈αpeople␈αwho␈αdon't␈αlike␈αvertical␈αtabs␈αin␈αtheir␈αtext
␈↓ β"␈βε@␈↓βfiles.␈α→(They␈αprint␈αout␈αas␈↓¬␈α<LF><LF><LF><LF>␈↓β␈αon␈αTTY's,␈αdial-up␈αlines␈αand␈αthe␈αLPT,␈αas
␈↓ β"␈βε↑␈↓β"␈↓∂␈↓β"␈α∞on␈α∞local␈α∞DPY's␈α∞and␈α∞the␈α∞XGP,␈α∞as␈α∞<erase-to-end-of-screen>␈α∞on␈α∞some␈α
Beehive
␈↓ β"␈βε|␈↓βterminals,␈α
and␈α
who-knows-what␈α
on␈α
other␈α
display␈α
terminals␈α
on␈α
the␈α
Arpanet.)
␈↓ ↓H␈βπ_␈↓1␈↓∂,␈↓β (comma)␈↓ β"(U␈αJ␈αCR␈α
o␈α
A)␈α
--␈α
same␈α
as␈↓␈α
1␈↓∂␈↓β␈α
except␈α
it␈α
ignores␈α
through␈α
next␈α
form-feed␈α
(page␈α
mark)
␈↓ β"␈βπ8␈↓βthereby␈α∪making␈α∪concatenating␈α∪two␈α∪pages␈α∩into␈α∩one␈α∩--␈α∩if␈α∩you␈α∩do␈α∩this␈α∩at␈α∩the
␈↓ β"␈βπV␈↓βbeginning␈α
of␈α
a␈α
page,␈α
it␈α
is␈α
as␈α
if␈α
the␈α
whole␈α
page␈α
weren't␈α
there.
␈↓ ↓H␈βπr␈↓1␈↓∂ ␈↓β (space)␈↓ β"(U␈α∂J␈α∞CR␈α∞o␈α∞A)␈α∞--␈α∞without␈α∞changing␈α∞mode,␈α∞ignore␈α∞all␈α∞input␈α∞text␈α∞(only␈α∞spaces␈α∞and
␈↓ β"␈βλ∩␈↓βtabs␈αallowed)␈αup␈αto␈αand␈αincluding␈αthe␈αnext␈αsemicolon.␈α⊗This␈α
is␈α
useful␈α
for␈α
indenting
␈↓ β"␈βλ0␈↓βinput-text␈α↔without␈α↔generating␈α↔spaces␈α↔or␈α↔tabs␈α⊗in␈α⊗the␈α⊗output.␈α⊗--␈α⊗Proposed
␈↓ β"␈βλN␈↓βadditional␈α∞feature␈α∞(not␈α∞yet␈α∞implemented,␈α
as␈α
of␈α
1976.NOV.26),␈α
if␈α
spaces␈α
and␈α
tabs
␈↓ β"␈βλl␈↓βare␈α
terminated␈α
by␈α
a␈α
printing␈α
character␈α
other␈α
than␈α
semicolon,␈α
that␈αcharacter␈αwill
␈↓ β"␈β
␈↓βterminate␈α
this␈α
mode␈α
but␈α
will␈α
be␈α
unread␈α
before␈α
returning␈α
to␈α
previous␈α
mode.
␈↓ ↓H␈β &␈↓1␈↓β␈↓ αH (tab)␈↓ β"(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
same␈α
as␈↓␈α
1␈↓β␈α
(space).
␈↓ ∧G␈β d␈↓βENTER SPECIAL-FORMATTING MODES (J CR)
␈↓ ↓H␈β
␈↓1␈↓∂J␈↓β␈↓ β"(U)␈α--␈αbegins␈αfull-justify␈αmode,␈αsee␈αtable␈αbelow␈αfor␈αdetails␈αon␈αthis␈αmode␈αand␈αhow
␈↓ β"␈β
␈↓βto␈α⊃get␈α⊃out␈α⊃of␈α⊃it.␈α"--␈α⊃Be␈α⊃aware␈α⊃that,␈α⊂because␈α⊂font␈α⊂selects␈α⊂count␈α⊂as␈α⊂text␈α⊂and
␈↓ β"␈β
>␈↓βtherefore␈α∂must␈α∂be␈α∂inside␈α∂words,␈α∂and␈α∂because␈α∂tabs␈α∂cannot␈α∂be␈α∂in␈α∂the␈α∞middle␈α∞of
␈↓ β"␈β
\␈↓βjustified␈α
lines␈α
of␈α
text,␈α
the␈α
following␈α
input␈α
syntax␈α
is␈α
illegal␈α
and␈α
will␈α
generate␈αthe
␈↓ β"␈β
z␈↓β"illegal␈α
tab␈α
in␈α
justify"␈α
error␈α
message:
␈↓ ↓H␈β⊗␈↓1␈↓∂J␈↓1␈↓∂F1␈↓¬<TB>␈↓∂This is a paragraph of text␈↓β...␈↓1␈↓∂.
␈↓ β"␈β6␈↓βTo␈α
avoid␈α
this␈α
problem,␈α
I␈α
suggest␈α
you␈α
do␈α
it␈α
this␈α
way␈α
instead:
␈↓ ↓H␈βR␈↓1␈↓∂F1␈↓1␈↓∂J␈↓¬<TB>␈↓∂This is a paragraph of text␈↓β...␈↓1␈↓∂.
␈↓ ↓H␈βp␈↓1␈↓∂R␈↓β␈↓ β"(U)␈α⊃--␈α⊃begins␈α⊃single-line␈α⊂align-against-right-margin␈α⊂mode,␈α⊂see␈α⊂table␈α⊂below␈α⊂for
␈↓ β"␈β⊂␈↓βdetails␈α
on␈α
this␈α
mode␈α
and␈α
how␈α
to␈α
get␈α
out␈α
of␈α
it.
␈↓ ↓H␈β,␈↓1␈↓∂C␈↓β␈↓ β"(U)␈α--␈αbegins␈αsingle-line␈αcenter-the-line␈αmode,␈αsee␈αtable␈αbelow␈α
for␈α
details␈α
on␈α
this
␈↓ β"␈βL␈↓βmode␈α
and␈α
how␈α
to␈α
get␈α
out␈α
of␈α
it.
␈↓ ∧ ␈β
λ␈↓βEXIT SPECIAL-FORMATTING MODES, ETC. (SEE TABLE)
␈↓ ↓H␈β
$␈↓1␈↓∂.␈↓β (period)
␈↓ ↓H␈β
B␈↓1␈↓∂;␈↓β (semicolon)␈↓ β"These␈αtwo␈αcommands␈αwill␈α
get␈α
out␈α
of␈α
some␈α
modes␈α
back␈α
to␈α
pass-as-is␈α
mode,␈α
and␈α
do
␈↓ β"␈β
b␈↓βother␈αthings␈αlike␈αignoring␈αtext␈αand␈αsuppressing␈α<CR><LF>␈α--␈αsee␈αtable␈αbelow␈αfor
␈↓ β"␈β∞␈↓βdetails␈α
of␈α
what␈α
each␈α
command␈α
does␈α
inside␈α
each␈α
of␈α
the␈α
modes:
␈↓ ∞␈↓α 4␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 5␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈∧↓bα"α
Z␈∧↓b|xα␈∧↓bα"xα␈↓ α,␈β↓d␈↓1␈↓∂.␈↓␈↓ ¬n1␈↓∂;␈↓¬␈↓ λ.<CR><LF>␈↓ <TB>␈↓β or ␈↓¬<SP>
␈∧α(αT␈∧α(Zα␈↓ 2␈βαα␈↓βPass-as-is␈↓ α,(not supported)␈↓ ¬ndo ␈↓1␈↓∂N␈↓β, #4␈↓¬␈↓ λ.<CR><LF>␈↓β, #4␈↓ copy to output
␈↓ 2␈βα ␈↓βJustify␈↓ α,finish, ␈↓¬<CR><LF>␈↓β, do ␈↓1␈↓∂N␈↓β␈↓ ¬nillegal␈↓ λ.(see #1)␈↓ (see #2)
␈↓ 2␈βα>␈↓βCenterify/Rightify␈↓ α,finish, pass-as-is␈↓ ¬nfinish, do ␈↓1␈↓∂N␈↓β, pass-as-is␈↓ λ.finish, ␈↓¬<CR><LF>␈↓β, pass-as-is␈↓ (see #3)
␈∧αZ(αT␈↓ ↓H␈βαz␈↓βfinish␈α--␈αGet␈αout␈αof␈αspecial␈αmode␈α(don't␈αemit␈↓¬␈α<CR><LF>␈↓β␈αyet).␈α⊗To␈αprotect␈αusers␈αwho␈αput␈αtext␈αafter␈↓␈α1␈↓∂.␈↓β␈αat
␈↓ ↓H␈ββ_␈↓βthe␈αend␈α
of␈α
justified␈α
text,␈α
the␈↓␈α
1␈↓∂N␈↓β␈α
shown␈α
in␈α
the␈α
table␈α
above␈α
prints␈α
any␈α
flushed-text␈α
on␈α
your␈α
terminal␈α
as␈α
a
␈↓ ↓H␈ββ6␈↓βsort-of␈αerror␈αmessage.␈α_When␈αleaving␈αcenterify/rightify␈αmode␈αwith␈αthe␈↓␈α1␈↓∂.␈↓β␈α_command,␈αthe␈αtable␈αshows
␈↓ ↓H␈ββT␈↓βno␈↓␈α1␈↓∂N␈↓β␈αcommand␈αand␈αno␈↓¬␈α<CR><LF>␈↓β␈αinserted,␈αso␈αthat␈αany␈αfollowing␈αtext␈αon␈αthe␈αsame␈αinput␈αline␈αwill␈αoccur
␈↓ ↓H␈ββr␈↓βon␈αthe␈αsame␈αline␈αof␈αoutput.␈α⊗Similarily␈αafter␈αusing␈↓␈α1␈↓∂;␈↓β␈αto␈αleave␈αcenterify/rightify␈αmode,␈α
text␈α
on␈α
the␈α
␈↓&next␈↓)αα
␈↓ ↓H␈β∧∩␈↓βline␈α
of␈α
input␈α
will␈α
overprint␈α
on␈α
the␈α
␈↓&same␈↓)αα␈α
line␈α
of␈α
output.
␈↓ ↓H␈β∧N␈↓β#1␈α∞--␈α∞A␈α∞blank␈α∞line␈α∞(i.e.␈↓¬␈α
<CR><LF>␈↓β␈α
immediately␈α
followed␈α
by␈↓¬␈α
<CR><LF>␈↓β)␈α
causes␈α
the␈α
previous␈α
paragraph␈α
(if
␈↓ ↓H␈β∧l␈↓βany␈αis␈αin␈αprogress)␈αto␈αbe␈αfinished,␈αthen␈αa␈αblank␈αline␈αis␈αemitted.␈α⊗As␈αmany␈αblank␈αlines␈αas␈αappear␈α
in␈α
input
␈↓ ↓H␈β¬
␈↓βwill␈α∂appear␈α∂in␈α∂output␈α∂(but␈α∂see␈α∂BUG#4).␈α≡The␈α∂next␈α∞nonblank␈α∞line␈α∞begins␈α∞a␈α∞new␈α∞paragraph.␈α≤A␈α∞single
␈↓ ↓H␈β¬(␈↓¬<CR><LF>␈↓β␈α
in␈α
a␈α
paragraph␈α
is␈α
merely␈α
a␈α
break␈α
between␈α
words.
␈↓ ↓H␈β¬d␈↓β#2␈α--␈αOne␈αor␈αmore␈α
tabs␈α
at␈α
the␈α
beginning␈α
of␈α
a␈α
line␈α
causes␈α
the␈α
previous␈α
paragraph␈α
(if␈α
any␈α
is␈α
in␈α
progress)
␈↓ ↓H␈βεα␈↓βto␈α⊂be␈α⊂finished,␈α⊂then␈α⊂a␈α⊂new␈α⊂paragraph␈α⊂is␈α⊂started␈α⊂with␈α⊂its␈α⊂first␈α⊂line␈α∂indented␈α∂by␈α∂the␈α∂tab(s).␈α≡Tab(s)
␈↓ ↓H␈βε ␈↓βelsewhere␈αare␈αillegal.␈α⊗NOTE␈α--␈αThere␈αis␈αcurrently␈αno␈αway␈αto␈αindent␈αby␈αany␈αamount␈αother␈αthan␈α
a␈α
whole
␈↓ ↓H␈βε>␈↓βnumber␈α
of␈α
tabs,␈α
nor␈α
is␈α
there␈α
any␈α
way␈α
to␈α
outdent␈α
by␈α
any␈α
amount␈α
at␈α
all.
␈↓ ↓H␈βεz␈↓β#3␈α--␈αTab(s)␈α
and/or␈α
space(s)␈α
at␈α
the␈α
beginning␈α
are␈α
ignored␈α
(in␈α
centerify␈α
this␈α
makes␈α
things␈α
look␈α
pretty,␈α
in
␈↓ ↓H␈βπ_␈↓βrightify␈α
it␈α
doesn't␈α
make␈α
any␈α
difference).␈α∀Elsewhere␈α
tabs␈α
are␈α
illegal␈α
and␈α
spaces␈α
are␈α
treated␈α
as␈α
text.␈α
(The
␈↓ ↓H␈βπ6␈↓βfeature␈αof␈αignoring␈αtabs␈αand␈αspaces␈αat␈α
the␈α
end␈α
is␈α
currently␈α
under␈α
consideration␈α
so␈α
don't␈α
rely␈α
on␈α
spaces
␈↓ ↓H␈βπT␈↓βbeing␈α
treated␈α
as␈α
text␈α
there.)
␈↓ ↓H␈βλ⊂␈↓β#4␈α--␈αAfter␈αperforming␈αthe␈αindicated␈αoperation,␈αif␈αthe␈αEVERYPAGE␈αfeature␈αhas␈αbeen␈αrequested␈αfor␈αthis
␈↓ ↓H␈βλ.␈↓βpage␈α∞(i.e.␈α∞if␈α∞VEREVE␈α∞was␈α∞TRUE␈α∞at␈α∞the␈α∞end␈α∞of␈α∞the␈α∞preceeding␈α∞page)␈α∞but␈α∞not␈α∞yet␈α
performed,␈α
then␈α
the
␈↓ ↓H␈βλL␈↓βbody␈αof␈αthe␈αmacro␈αEVERYPAGE␈αis␈αpatched␈αinto␈αthe␈αinput␈αstream␈αat␈αthis␈αpoint.␈α⊗This,␈αof␈αcourse,␈αis␈αlikely
␈↓ ↓H␈βλj␈↓βto␈αclobber␈α
any␈α
registers␈α
(including␈α
the␈α
ac)␈α
that␈α
are␈α
used␈α
by␈α
the␈α
EVERYPAGE␈α
macro,␈α
unless␈α
you␈α
carefully
␈↓ ↓H␈β λ␈↓βwrite␈α
your␈α
EVERYPAGE␈α
macro␈α
so␈α
that␈α
it␈α
saves␈α
and␈α
restores␈α
the␈α
ac␈α
and␈α
any␈α
other␈α
registers␈α
it␈α
uses.
␈↓ ¬λ␈β D␈↓βREDEFINE THE BRICK CHARACTER
␈↓ ↓H␈β `␈↓1␈↓∂|␈↓¬<CH>␈↓β␈↓ β"(U␈αJ␈αCR␈αo␈αA)␈α--␈αchanges␈αthe␈αbrick␈αcharacter␈αto␈↓¬␈α<CH>␈↓β␈α--␈αI␈αdon't␈αguarantee␈αparsing
␈↓ β"␈β
␈↓βwill␈α∂mesh␈α∂with␈α∂this␈α∂in␈α∂a␈α∂reasonable␈α∂way␈α∂if␈α∂you␈α∂do␈α∂this␈α∂deep␈α∂inside␈α∂something
␈↓ β"␈β
≡␈↓βcomplicated␈αlike␈αjustify,␈αsurrounded␈αnearby␈αby␈αthings␈αthat␈αdepend␈αon␈αthe␈αescape
␈↓ β"␈β
:␈↓βcharacter␈α∂being␈α∞what␈α∞you'd␈α∞expect␈α∞--␈α∞note␈α∞that␈α∞if␈α∞you␈α∞do␈↓␈α∞1␈↓∂||␈↓β␈α∞you␈α∞can't␈α∞later
␈↓ β"␈β
Z␈↓βchange␈α∞back␈α∞because␈α∞then␈α∞as␈α∞long␈α∞as␈α∞"␈↓∂|␈↓β"␈α∞is␈α∞the␈α
escape␈α
character,␈α
"␈↓∂||␈↓β"␈α
will␈α
be
␈↓ β"␈β
v␈↓βparsed␈α∩as␈α∩"␈↓11␈↓β"␈α∩rather␈α∩than␈α∩as␈α∩"␈↓1␈↓∂|␈↓β...".␈α"(see␈α⊃the␈↓␈α⊃11␈↓β␈α⊃and␈↓␈α⊃1␈↓∂"␈↓¬<CH>␈↓β␈α⊃commands
␈↓ β"␈β∀␈↓βearlier),␈α⊃unless,␈α⊃of␈α⊃course,␈α⊃you␈α⊃have␈α⊃disabled␈α⊃the␈↓␈α⊃11␈↓β␈α⊃command␈α⊃by␈α⊃means␈α⊃of
␈↓ β"␈β2␈↓1␈↓∂⊂'1000001;␈↓β␈α
or␈α
equivalent.
␈↓ ¬ ␈βk␈↓Examples of basic commands
␈↓ α_␈β∞␈↓βIn this writeup I loaded the following fonts (␈↓∂$␈↓β is the escape character):
␈↓ ↓H␈β,␈↓∂$M0NGR30;$M1NGR30;$M2BDI25;$M3NGR25;$M4NGB25[1,REM];$M5NGR20[1,REM];$M6XMAS25;
␈↓ ↓H␈βJ␈↓∂$MFKBD25;$MC75224X.FNT[1,REM];
␈↓ ↓H␈βh␈↓β(Note␈αthat␈αNGR30␈αis␈αnot␈αreally␈αloaded␈αtwice␈αbecause␈αwhen␈αPOX␈αsees␈αthe␈↓∂␈α$M1␈↓β...␈αcommand␈αit␈αnotices␈αthat
␈↓ ↓H␈β
ε␈↓∂NGR30␈↓β␈α∂is␈α∂already␈α∂loaded␈α∂as␈α∂font#␈↓∂0␈↓β␈α∂and␈α∂POX␈α∂then␈α∂merely␈α∂maps␈α∂user␈α∂font␈α∂number␈↓∂␈α∂1␈↓β␈α∂to␈α∂system␈α∂font
␈↓ ↓H␈β
$␈↓βnumber␈↓∂␈α
0␈↓β␈α
by␈α
means␈α
of␈α
the␈α
font␈α
mapping␈α
table␈α
in␈α
POX).
␈↓ α_␈β
B␈↓βLater␈α
in␈α
this␈α
writeup,␈α
in␈α
a␈α
required-source␈α
file,␈α
the␈α
following␈α
load-font␈α
commands␈α
appear:
␈↓ ↓H␈β
`␈↓∂\M0CLAR30;\M1NGB25[1,REM];\M2NGR20[1,REM];\M3BDI25;
␈↓ ↓H␈β
}␈↓∂\M9GRK30;\MEGRKL50;\MF75224X.FNT[1,REM];
␈↓ ↓H␈β∞≤␈↓βOnly␈αthe␈αfonts␈α
not␈α
previously␈α
loaded␈α
are␈α
loaded␈α
now.␈α∀The␈α
rest␈α
are␈α
merely␈α
mapped␈α
to␈α
their␈α
system␈α
font
␈↓ ↓H␈β∞:␈↓βnumbers␈α
(assigned␈α
when␈α
first␈α
loaded)␈α
from␈α
their␈α
new␈α
user␈α
font␈α
numbers.
␈↓ α_␈β∞V␈↓βThis␈αparagraph␈αand␈αall␈αother␈αjustified␈αtext␈αat␈αnormal␈αmargins␈αwas␈αdone␈αby␈α
using␈↓␈α
1␈↓∂J␈↓β␈α
to␈α
enter␈α
and
␈↓ ↓H␈β∞t␈↓1␈↓∂.␈↓β␈α
to␈αexit␈αjustify␈αmode.␈α_(See␈αthe␈αsection␈αon␈αREGISTERS␈αfor␈αhow␈αindented␈αparagraphs␈αof␈αdescriptions
␈↓ ↓H␈β∂∩␈↓βafter␈αeach␈αcommand␈αsyntax␈αwas␈αdone␈αby␈αthe␈↓␈α1␈↓∂j␈↓β␈αcommand.)␈α_The␈αtitle␈αon␈αthe␈αfirst␈αpage␈αis␈αin␈αcenterify
␈↓ ↓H␈β∂0␈↓βmode,␈αusing␈↓␈α1␈↓∂C␈↓β␈αto␈αenter␈αand␈↓¬␈α<CR><LF>␈↓β␈αto␈αexit.␈α_(The␈αtitles␈αon␈αother␈αpages␈αare␈αdone␈αby␈αoverlays,␈αwhich
␈↓ ∞␈↓α 5␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 6␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βare␈α
also␈α
explained␈α
later␈α
in␈α
this␈α
writeup.)
␈↓ α_␈βα∧␈↓βHere␈α
are␈α
some␈α
further␈α
examples␈α
of␈α
the␈α
above␈α
commands:
␈↓ ↓H␈βα"␈↓∂$F1This line $F2is in $F3several fonts. $f1Temp $f1font $f1selects
␈↓ ↓H␈βα;␈↓This line ␈↓αis in ␈↓βseveral fonts. ␈↓T␈↓βemp ␈↓f␈↓βont ␈↓s␈↓βelects
␈↓ ↓H␈βα|␈↓∂$F5$CThis line has antidisestablishmentarianismfoogarplylongwordthatis$N
␈↓ ↓H␈ββ~␈↓∂allinthesinglewordininthemiddleofthislineofcenteredtext as you see.
␈↓ ↓e␈ββ<␈↓¬This line has antidisestablishmentarianismfoogarplylongwordthatisallinthesinglewordininthemiddleofthislineofcenteredtext as you see.
␈↓ ↓H␈ββt␈↓∂$F3Hello there.$RWell, hello to you too$;
␈↓ ↓H␈β∧∩␈↓∂$C(Middle on same line)
␈↓ ↓H␈β∧0␈↓βHello there.␈↓ ZWell, hello to you too␈↓ ¬S(Middle on same line)
␈↓ ↓H␈β∧l␈↓∂$F3Left part $f1$CThis didn't get centered, see next example for fix
␈↓ ↓H␈⬬␈↓βLeft part ␈↓$␈↓βCThis didn't get centered, see next example for fix
␈↓ ↓H␈β¬F␈↓∂$F3Left part $C$f1This got centered ok.
␈↓ ↓H␈β¬←␈↓βLeft part ␈↓␈↓ ¬PT␈↓βhis got centered ok.
␈↓ ↓H␈βε ␈↓∂$F3For the same reason $f1$'14; doesn't do what you would want.
␈↓ ↓H␈βε9␈↓βFor the same reason ␈↓$␈↓β'14; doesn't do what you would want.
␈↓ ↓H␈βεz␈↓∂$F3But in this case some commands discussed later, $#$F1$'14;$G, do the trick.
␈↓ ↓H␈βπ∪␈↓βBut in this case some commands discussed later, ␈↓␈␈↓β, do the trick.
␈↓ ε∧␈βπO␈↓SIMULATOR
␈↓ α_␈βπr␈↓βThe␈α"linefeed␈αsimulator"␈αis␈αa␈αpost-processor␈αfor␈αall␈αtext␈αemitted␈αby␈αthe␈αordinary␈αmode␈αscanners
␈↓ ↓H␈βλ∞␈↓β(U␈α
J␈α
or␈α
CR).␈α~To␈α
enable␈α
the␈α
linefeed␈α
simulator,␈α
use␈α
the␈↓␈α
1␈↓∂⊂'4;␈↓β␈α
command␈α
(see␈α
the␈α
section␈α
on␈αenabling
␈↓ ↓H␈βλ.␈↓βspecial␈α
features).
␈↓ α_␈βλL␈↓βThe␈α⊂original␈α⊂function␈α⊂of␈α⊂the␈α⊂simulator␈α⊂was␈α∂to␈α∂simulate␈α∂the␈α∂the␈α∂way␈α∂XGPSER␈α∂(the␈α∂part␈α∂of␈α∂the
␈↓ ↓H␈βλj␈↓βsystem␈α∂that␈α∂services␈α∂the␈α∂XGP,␈α∂in␈α∂particular␈α∂"XGP␈α∂character␈α∂mode"␈α∂as␈α∂described␈α∂in␈α∂the␈α∞UUO␈α∞manual)
␈↓ ↓H␈β λ␈↓βwould␈α∀handle␈α∪linefeeds␈α∪emitted␈α∪by␈α∪POX,␈α∪i.e.␈α∪the␈α∪simulator␈α∪replaces␈α∪each␈α∪linefeed␈α∪by␈α∪an␈α∪explicit
␈↓ ↓H␈β &␈↓βvertical-position-select␈α∞that␈α∞is␈α∞equivalent␈α∞to␈α∞what␈α∞XGPSER␈α
would␈α
have␈α
done␈α
if␈α
the␈α
linefeed␈α
had␈α
been
␈↓ ↓H␈β D␈↓βemitted␈α∂directly␈α∂into␈α∂the␈α∂output␈α∂file.␈α≡That␈α∂makes␈α∂it␈α∂possible␈α∂for␈α∂POX␈α∂to␈α∂sort␈α∞vectors␈α∞and␈α∞text␈α∞into
␈↓ ↓H␈β b␈↓βcorrect␈α∂sequence␈α∂according␈α∂to␈α∂vertical␈α∂position␈α∂on␈α∂the␈α∂page␈α∂before␈α∞outputting␈α∞them␈α∞(XGP␈α∞character
␈↓ ↓H␈β
␈↓βmode␈αrequires␈αthis),␈αto␈αknow␈αwhen␈αbottom␈αof␈αpage␈αis␈αreached␈αand␈αa␈αnew␈αpage␈αis␈αstarted␈α(so␈αthat␈αPOX
␈↓ ↓H␈β
≡␈↓βcan␈αkeep␈αtrack␈αof␈αpage␈αnumbers␈αcorrectly,␈αor␈αwarn␈αthe␈αuser␈αif␈αa␈αpage␈αbecomes␈αfull␈αunexpectedly),␈αand
␈↓ ↓H␈β
<␈↓βso␈α⊃that␈α⊃uniform␈α⊃baseline␈α⊃spacing␈α⊂can␈α⊂be␈α⊂obtained␈α⊂regardless␈α⊂of␈α⊂varying␈α⊂sizes␈α⊂of␈α⊂superscripts␈α⊂and
␈↓ ↓H␈β
Z␈↓βsubscripts.␈α≤More␈α∞recently␈α∞(1976␈α∞July␈α∞to␈α
Sept.)␈α
the␈α
simulator␈α
was␈α
enhanced␈α
to␈α
optimize␈α
font-selects,
␈↓ ↓H␈β
x␈↓βcolumn-adjusts,␈α∪and␈α∪baseline-adjusts,␈α∪i.e.␈α∪to␈α∪eliminate␈α∪all␈α∪redundant␈α∪operations,␈α∪and␈α∪to␈α∩implement
␈↓ ↓H␈β∀␈↓βgiant-baseline-offset,␈αi.e.␈αwhen␈αa␈↓␈α1␈↓∂↑␈↓β,␈↓␈α1␈↓∂↓␈↓β␈αor␈↓␈α1␈↓∂→,␈↓β␈αcommand␈αis␈αgiven␈αwith␈αan␈αargument␈αout␈αof␈αthe␈αrange
␈↓ ↓H␈β4␈↓βof␈α
-100␈α
to␈α
+77␈α
(octal)␈α
the␈α
baseline-specification␈α
is␈α
expanded␈α
into␈α
enough␈α
relative-baseline-offsets␈αto
␈↓ ↓H␈βR␈↓βaccomplish␈α
the␈α
desired␈α
effect.
␈↓ α_␈βp␈↓βMany␈α
of␈α
the␈α
commands␈α
below␈α
require␈α
the␈α
simulator␈α
if␈α
they␈α
are␈α
to␈α
work␈α
in␈α
full␈α
generality␈α
or␈α
at␈α
all.
␈↓ ελ␈βY␈↓REGISTERS
␈↓ α_␈βo␈↓βThere␈α∩are␈α∩2␈↓#
7␈↓#=128␈α∩registers␈α∩which␈α∩can␈α∩hold␈α∩any␈α∩36-bit␈α∩integer␈α∩(PDP-10␈α∩two's␈α∩complement
␈↓ ↓H␈β
~␈↓βformat),␈α
such␈α
as␈α
the␈α
horizontal␈α
coordinate␈α
of␈α
some␈α
column␈α
on␈α
the␈α
page.␈α_(␈↓αNote␈↓β␈α--␈αall␈αlocations␈αon␈αthe
␈↓ ↓H␈β
8␈↓βXGP,␈αwhether␈αrelative␈αor␈αabsolute,␈αare␈αmeasured␈αin␈αXGP␈αpixels␈αwhich␈αare␈αabout␈α5␈α
mils,␈α
i.e.␈α∀1/200␈α
inch)
␈↓ ↓H␈β
V␈↓βThe␈α∞idea␈α∞is␈α∞to␈α∞allow␈α∞specification␈α∞of␈α
multi-column␈α
tables␈α
and␈↓α␈α
superscripts-above-subscripts␈↓β␈α
in␈α
an␈α
easy
␈↓ ↓H␈β
t␈↓βand␈α
flexible␈α
way,␈α
including␈α
automatic␈α
allocation␈α
of␈α
such␈α
things␈α
as␈α
"␈↓α1/5␈α
of␈α
a␈α
page␈↓β"␈α
by␈α
simple␈α
division,
␈↓ ↓H␈β∞∩␈↓βand␈α⊂to␈α∂perform␈α∂any␈α∂other␈α∂integer␈α∂arithmetic␈α∂or␈α∂logic␈α∂that␈α∂might␈α∂be␈α∂useful␈α∂during␈α∂compilations␈α∂of␈α∂a
␈↓ ↓H␈β∞0␈↓βdocument.␈α Each␈α⊂register␈α∂is␈α∂specified␈α∂by␈α∂an␈α∂ASCII␈α∂character.␈α∂(␈↓αNote␈↓β␈α∂--␈α∂in␈α∂general,␈α∂POX␈α∂distinguishes
␈↓ ↓H␈β∞N␈↓βbetween␈α⊂upper-␈α⊂and␈α⊂lower-case␈α⊂characters␈α⊂--␈α⊂for␈α⊂example,␈α⊂"␈↓∂k␈↓β"␈α⊂and␈α⊂"␈↓∂K␈↓β"␈α⊂do␈α⊂not␈α∂refer␈α∂to␈α∂the␈α∂same
␈↓ ↓H␈β∞l␈↓βregister.)␈α⊗One␈αof␈αthe␈αnon-alphanumeric␈αregisters␈α(currently␈αregister␈↓∂␈α∀␈↓β)␈α
is␈α
called␈α
the␈α
"␈↓αaccumulator␈↓β"␈α
and
␈↓ ↓H␈β∂
␈↓βis␈α∞the␈α∞intermediate␈α∞storage␈α∞for␈α
most␈α
sequences␈α
of␈α
arithmetic␈α
calculation.␈α~Other␈α
special␈α
registers␈α
are
␈↓ ↓H␈β∂(␈↓βlisted␈α
below,␈α
as␈α
well␈α
as␈α
characters␈α
that␈α
don't␈α
specify␈α
registers␈α
at␈α
all.␈α→(␈↓αWarning␈↓β␈α--␈αnon-alphanumeric
␈↓ ∞␈↓α 6␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 7␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βregister␈α∂names␈α∂are␈α∞liable␈α∞to␈α∞be␈α∞changed␈α∞to␈α∞special␈α∞arguments␈α∞like␈α∞"."␈α∞and␈α∞","␈α∞without␈α∞much␈α∞warning.
␈↓ ↓H␈β↓f␈↓βTherefore,␈α
please␈α
use␈α
only␈α
alphanumeric␈α
register␈α
names␈α
in␈α
files␈α
that␈α
you␈α
will␈α
be␈α
unwilling␈α
to␈α
maintain.)
␈↓ ↓H␈βα≥␈↓Meaning of argument(s) to the commands:
␈↓ ↓H␈βα@␈↓¬<CH>␈↓β␈↓ β"If␈α
not␈α
mentioned␈α
below,␈α
contents␈α
of␈α
register␈α
corresponding␈α
to␈α
that␈α
character.
␈↓ ↓H␈βα↑␈↓∂. ␈↓β(period) ␈↓ β"Current␈α⊂column␈α∂location␈α∂(increases␈α∂as␈α∂you␈α∂move␈α∂to␈α∂the␈α∂right)␈α∂is␈α∂stored␈α∂in␈α∂the
␈↓ β"␈βα|␈↓βright␈α⊂half␈α⊂of␈α⊂this␈α⊂register.␈α∨Every␈α∂time␈α∂a␈α∂character␈α∂is␈α∂written,␈α∂this␈α∂register␈α∂is
␈↓ β"␈ββ~␈↓βupdated␈α
to␈α
account␈α
for␈α
the␈α
space␈αused␈αup␈αby␈αthe␈αcharacter,␈αand␈αif␈αyou␈αwrite␈αin
␈↓ β"␈ββ8␈↓βthis␈α
register,␈α
a␈α
column␈α
select␈α
will␈α
be␈αgenerated␈αin␈αyour␈αoutput␈αfile␈αto␈αreally␈αput
␈↓ β"␈ββV␈↓βyou␈α∂there.␈α≡(U)␈α∂In␈α∂pass-as-is␈α∂mode,␈α∂this␈α∂column␈α∂location␈α∂is␈α∂relative␈α∂to␈α∂the␈α∞left
␈↓ β"␈ββt␈↓βedge␈α∞of␈α∞the␈α∞paper␈α
and␈α
should␈α
be␈α
in␈α
the␈α
range␈α
of␈α
50␈α
to␈α
1650␈α
(decimal)␈α
usually.
␈↓ β"␈β∧∩␈↓βThe␈αleft␈αhalf␈αof␈αthis␈αregister␈αis␈αzero␈αin␈αthis␈αcase.␈α∃(J)␈α
In␈α
justify␈α
mode,␈α
it␈α
is␈α
relative
␈↓ β"␈β∧0␈↓βto␈α∩the␈α∩beginning␈α∩of␈α∩the␈α∩current␈α∩word␈α⊃of␈α⊃text␈α⊃(delimited␈α⊃by␈↓¬␈α⊃<SP>␈↓β␈α⊃or␈↓¬␈α⊃<TB>␈↓β␈α⊃or
␈↓ β"␈β∧N␈↓¬<CR><LF>␈↓β␈α∩except␈α∩that␈↓¬␈α∩<SP>␈↓β␈α∩does␈α∩not␈α∩delimit␈α∩if␈α∩it␈α∩is␈α∩not␈α∩on␈α∩the␈α∩baseline).␈α#A
␈↓ β"␈β∧l␈↓βrelocation␈αidentifier␈αis␈αin␈αthe␈αleft␈αhalf␈αof␈αthe␈αregister␈αto␈αallow␈αchecking␈αfor␈αillegal
␈↓ β"␈β¬
␈↓βcolumn␈α
selects.␈α
(CR)␈α
In␈α
centerify/rightify␈α
mode,␈α
it␈α
is␈α
relative␈αto␈αthe␈αbeginning␈αof
␈↓ β"␈β¬(␈↓βthe␈α
centered/rightified␈α
text␈α
with␈α
a␈α
password␈α
in␈α
the␈αleft␈αhalf␈αas␈αif␈αthe␈αtext␈αwere
␈↓ β"␈β¬F␈↓βone␈α⊃big␈α⊃word.␈α"(o)␈α⊃In␈α⊃define␈α⊃atomic␈α⊃text␈α⊃overlay␈α⊃mode,␈α⊃the␈α⊂right␈α⊂half␈α⊂is␈α⊂the
␈↓ β"␈β¬d␈↓βlocation␈α⊂relative␈α∂to␈α∂the␈α∂basepoint␈α∂of␈α∂the␈α∂overlay,␈α∂usually␈α∂the␈α∂left␈α∂edge␈α∂of␈α∂the
␈↓ β"␈βεα␈↓βoverlay.␈α~--␈α
In␈α
arguments␈α
to␈αmacros,␈αit␈αis␈αnot␈αimplemented␈αalthough␈αyou␈αare␈αnot
␈↓ β"␈βε ␈↓βprevented␈αfrom␈αtotally␈αscrewing␈αyourself␈αby␈α
the␈α
attempt␈α
to␈α
store␈α
in␈α
this␈α
register,
␈↓ β"␈βε>␈↓βor␈α
getting␈α
worthless␈α
undocumented␈α
data␈α
by␈α
reading␈α
from␈α
this␈α
register.
␈↓ ↓H␈βε\␈↓∂, ␈↓β(comma) ␈↓ β"This␈αregister␈αworks␈αsomewhat␈αlike␈αperiod,␈αcurrent␈αrelative␈αposition␈αof␈αtext␈αabove
␈↓ β"␈βεr␈↓βbaseline␈α(if␈αnegative,␈α
below␈α
baseline)␈α
--␈α
thus␈↓␈α
1␈↓∂←␈↓εq␈↓1␈↓∂→,␈↓β␈α
replaces␈↓␈α
1␈↓∂↑␈↓εq␈↓β␈α
and␈↓␈α
1␈↓∂↓␈↓εq␈↓β'␈α
as
␈↓ β"␈βπ⊗␈↓βwell␈α∞as␈↓␈α∞1␈↓∂∩␈↓β␈α∞and␈↓␈α∞1␈↓∂∪␈↓β.␈α∞(U␈α∞J␈α
CR)␈α
See␈α
the␈α
note␈α
after␈α
the␈↓␈α
1␈↓∂↑␈↓β␈α
and␈↓␈α
1␈↓∂↓␈↓β␈α
commands,␈α
for
␈↓ β"␈βπ6␈↓βlegal␈α
range␈α
of␈α
value␈α
stored␈α
in␈α
register␈↓∂␈α
,␈↓β.
␈↓ ↓H␈βπT␈↓∂; ␈↓β(semicolon)␈↓ β"Like␈α"."␈αor␈α","␈α--␈αabsolute␈αposition␈α(below␈αtop␈αof␈α
page)␈α
of␈α
the␈α
last␈α
scan␈α
line␈α
of␈α
the
␈↓ β"␈βπr␈↓βlast␈α
text␈α
line␈α
previously␈α
printed,␈α
or␈α
zero␈α
if␈α
this␈α
is␈α
explicitly␈α
the␈α
first␈α
thing␈αon␈αa
␈↓ β"␈βλ⊂␈↓βpage.␈α⊗Note␈αthat␈αif␈αthe␈αcurrent␈αline␈αwon't␈αfit␈αon␈αa␈αpage␈αand␈αwill␈αget␈αmoved␈αto␈α
the
␈↓ β"␈βλ.␈↓βnext␈αpage␈αautomatically,␈αthe␈αnext-page␈αdecision␈αwon't␈α
have␈α
been␈α
made␈α
until␈α
after
␈↓ β"␈βλL␈↓βprocessing␈αof␈αthis␈αline␈αis␈αdone,␈αso␈αthat␈αregister␈α;␈α
will␈α
still␈α
indicate␈α
the␈α
location␈α
(on
␈↓ β"␈βλj␈↓βthe␈αprevious␈αpage)␈αof␈α
the␈α
previous␈α
line,␈α
instead␈α
of␈α
zero.␈α∀(Register␈α
;␈α
only␈α
contains
␈↓ β"␈β ε␈↓βthis␈α
information␈α
if␈α
this␈α
feature␈α
is␈α
enabled.␈α∀See␈α
note␈α
4␈α
and␈α
the␈↓␈α
1␈↓∂⊂␈↓β␈α
command.)
␈↓ ↓H␈β &␈↓∂L␈↓β␈↓ β"Left␈αmargin␈αis␈αstored␈αin␈αthis␈αregister␈α(<CR>␈αcauses␈α
column␈α
select␈α
here␈α
--␈α
see␈α
also
␈↓ β"␈β B␈↓1␈↓∂J␈↓␈α
1␈↓∂C␈↓␈α
1␈↓∂R␈↓␈α
1␈↓∂O␈↓␈α
1␈↓∂W␈↓β).
␈↓ ↓H␈β b␈↓∂R␈↓β␈↓ β"Right␈αmargin␈α(for␈αJ␈αand␈αCR␈αmodes,␈αand␈αfor␈αwarning␈αyou␈α
if␈α
you␈α
try␈α
to␈α
write␈α
past␈α
it
␈↓ β"␈β
␈↓βin␈α
pass-as-is␈α
mode)␈α
is␈α
stored␈α
in␈α
this␈α
register.
␈↓ ↓H␈β
≤␈↓β(Note, top and bottom margins are handled differently, see the ␈↓1␈↓∂T␈↓β, ␈↓1␈↓∂t␈↓β, ␈↓1␈↓∂B␈↓β, and ␈↓1␈↓∂b␈↓β commands.)
␈↓ ↓H␈β
Z␈↓∂'␈↓¬<SIGNED OR UNSIGNED OCTAL NUMBER>␈↓∂;
␈↓ β"␈β
x␈↓βInstead␈αof␈αreading␈αa␈α
number␈α
from␈α
a␈α
register,␈α
these␈α
octal␈α
digits␈α
are␈α
assembled␈α
into
␈↓ β"␈β⊗␈↓βa␈α
constant␈α
and␈α
that␈α
constant␈α
acts␈α
as␈α
an␈α
immediate␈α
operand␈α
(READONLY).
␈↓ ↓H␈β4␈↓∂=␈↓¬<SIGNED OR UNSIGNED DECIMAL NUMBER>␈↓∂;␈↓β␈↓ ¬HSame as above except decimal conversion (READONLY).
␈↓ ↓H␈βR␈↓∂w␈↓¬<CH>␈↓β␈↓ β"Width␈α
of␈α
character␈↓¬␈α
<CH>␈↓β␈α
in␈α
current␈α
font␈α
(READONLY).
␈↓ ↓H␈βn␈↓∂H␈↓β␈↓ β"Total␈α
height␈α
of␈α
current␈α
font␈α
(READONLY)␈α
(if␈α
enabled,␈α
see␈α
the␈↓␈α
1␈↓∂⊂␈↓β␈α
command).
␈↓ ↓H␈β␈↓∂h␈↓β␈↓ β"Height␈α∀above␈α∀baseline␈α∀of␈α∀current␈α∀font␈α∪(READONLY)␈α∪(if␈α∪enabled,␈α∪see␈α∪the␈↓␈α∪1␈↓∂⊂
␈↓ β"␈β,␈↓βcommand).
␈↓ α_␈βh␈↓βThe␈α⊃arguments␈α⊃marked␈α⊃"(READONLY)"␈α⊃above␈α⊃are␈α⊃forbidden␈α⊃in␈α⊃certain␈α⊃commands␈α⊂because␈α⊂the
␈↓ ↓H␈β
ε␈↓βcommand␈α
expects␈α
to␈α
have␈α
a␈α
genuine␈α
register␈α
to␈α
store␈α
data␈α
into.␈α~This␈αrestriction␈αwill␈αbe␈αindicated␈αby
␈↓ ↓H␈β
$␈↓β"READONLY␈α
operands␈α
not␈α
allowed"␈α
in␈α
the␈α
command␈α
descriptions.
␈↓ α_␈β
B␈↓βThroughout␈αthe␈αremainder␈αof␈αthis␈αwriteup,␈α
command-arguments␈α
that␈α
that␈α
are␈α
parsed␈α
in␈α
the␈α
above
␈↓ ↓H␈β
`␈↓βway␈α∂will␈α∂be␈α∂denoted␈α∂by␈α∂various␈α∂alphanumeric␈α∂characters␈α∂in␈α∞a␈α∞special␈α∞font,␈α∞to␈α∞distinguish␈α∞them␈α∞from
␈↓ ↓H␈β
}␈↓βcharacters␈α∞that␈α∞you␈α∞are␈α∞supposed␈α∞to␈α∞actually␈α
type␈α
(which␈α
are␈α
in␈α
a␈α
keyboard-style␈α
font␈α
as␈α
described
␈↓ ↓H␈β∞≤␈↓βearlier),␈αand␈αBNF-style␈αsyntactical␈αentities␈α(which␈αare␈αin␈αyet␈αanother␈αfont␈αas␈αalso␈αshown␈αearlier).␈α⊗Here
␈↓ ↓H␈β∞:␈↓βare␈α
what␈α
the␈α
alphanumerics␈α
look␈α
like␈α
in␈α
the␈α
argument␈α
font:
␈↓ ↓H␈β∞P␈↓εabcdefghijklmnopqrstuvwxyz
␈↓ ∞␈↓α 7␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 8␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓The commands that use the types of arguments described above:
␈↓ ∧;␈βα ␈↓βLOAD/STORE/ARITHMETIC/LOGIC OPERATIONS
␈↓ ↓H␈βα∨␈↓1␈↓∂←␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
load␈α
ac␈α
from␈↓ε␈α
q␈↓β.
␈↓ ↓H␈βα=␈↓1␈↓∂→␈↓εq␈↓β␈↓ ββ(U␈α⊂J␈α⊂CR␈α⊂o␈α⊂A)␈α⊂--␈α∂store␈α∂contents␈α∂of␈α∂ac␈α∂into␈↓ε␈α∂q␈↓β,␈α∂READONLY␈α∂operands␈α∂not
␈↓ ββ␈βαc␈↓βallowed.␈α⊗WARNING␈α--␈αDo␈αnot␈αstore␈αin␈αregisters␈α"."␈α","␈αor␈α";"␈α
except␈α
where
␈↓ ββ␈ββ↓␈↓βlegal.␈α∀POX␈α
will␈α
get␈α
confused␈α
if␈α
you␈α
do.␈α∀See␈α
argument␈α
description␈α
above.
␈↓ ↓H␈ββ↔␈↓1␈↓∂+␈↓εq␈↓∂ ␈↓1␈↓∂-␈↓εq
␈↓ ↓H␈ββ5␈↓1␈↓∂*␈↓εq␈↓∂ ␈↓1␈↓∂/␈↓εq␈↓β␈↓ ββ(U␈α⊃J␈α⊃CR␈α⊃o␈α⊃A)␈α⊃--␈α⊃usual␈α⊃arithmetic␈α⊃--␈α⊂ac␈α⊂plus/minus/times/dividedby␈↓ε␈α⊂q␈↓β,
␈↓ ββ␈ββ[␈↓βresult␈α
in␈α
ac.
␈↓ ↓H␈ββq␈↓1␈↓∂%␈↓εq␈↓β␈↓ ββ(U␈αJ␈αCR␈αo␈αA)␈α--␈α"modulo"␈α--␈αac␈αdivided␈αby␈↓ε␈αq␈↓β,␈αremainder␈αin␈αac.␈α--␈αif␈αthe␈α
ac
␈↓ ββ␈β∧∂␈↓βis␈α⊃nonnegative␈α⊃and␈↓ε␈α⊂q␈↓β␈α⊂is␈α⊂positive,␈α⊂this␈α⊂corresponds␈α⊂to␈α⊂reducing␈α⊂the␈α⊂ac
␈↓ ββ␈β∧-␈↓βmodulo␈↓ε␈α≤q␈↓β␈α≤(number␈α≤theory),␈α≤otherwise␈α≠the␈α≠result␈α≠is␈α≠nonstandard
␈↓ ββ␈β∧S␈↓βmathematically,␈α
and␈α
indeed␈α
machine-dependent.
␈↓ ↓H␈β∧i␈↓1␈↓∂¬␈↓εq␈↓∂ ␈↓1␈↓∂\␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
reverse␈α
arithmetic␈α
--␈↓ε␈α
q␈↓β␈α
minus/dividedby␈α
ac,␈α
result␈α
in␈α
ac.
␈↓ α&␈β¬
␈↓¬[Note -- since -1 is stored in the PDP-10 as all-ones, the POX command ␈↓1␈↓∂¬'-1;␈↓¬ will logically complement the ac.]
␈↓ ↓H␈β¬%␈↓1␈↓∂∧␈↓εq␈↓∂ ␈↓1␈↓∂∨␈↓εq␈↓∂ ␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
usual␈α
logical␈α
operations␈α
--␈α
ac␈α
and/or␈↓ε␈α
q␈↓β,␈α
result␈α
in␈α
ac.
␈↓ ↓H␈β¬C␈↓1␈↓∂L␈↓εq␈↓β␈↓ ββ(U␈αJ␈αCR␈αo␈αA)␈α--␈αlogical␈αshift␈αof␈αac␈αleft␈αby␈↓ε␈αq␈↓β␈αbits␈α(if␈↓ε␈αq␈↓β<0␈αthen␈αshift␈αright),
␈↓ ββ␈β¬i␈↓βresult␈α
in␈α
ac.
␈↓ ↓H␈β¬␈␈↓1␈↓∂~␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
maximum␈α
of␈α
ac␈α
and␈↓ε␈α
q␈↓β,␈α
result␈α
in␈α
ac.
␈↓ ↓H␈βε≥␈↓1␈↓∂_␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
minimum␈α
of␈α
ac␈α
and␈↓ε␈α
q␈↓β,␈α
result␈α
in␈α
ac.
␈↓ ∧k␈βεa␈↓βSUBSCRIPT/SUPERSCRIPT COMMANDS
␈↓ ↓H␈βεw␈↓1␈↓∂↑␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o)␈α
--␈α
move␈α
text␈α
up␈↓ε␈α
q␈↓β␈α
with␈α
respect␈α
to␈α
the␈α
baseline.
␈↓ ↓H␈βπ∃␈↓1␈↓∂↓␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o)␈α
--␈α
move␈α
text␈α
down␈↓ε␈α
q␈↓β␈α
with␈α
respect␈α
to␈α
the␈α
baseline.
␈↓ α_␈βπ;␈↓βWith␈α⊂simulator␈α⊂on␈α⊂there␈α∂is␈α∂no␈α∂limit␈α∂imposed␈α∂by␈α∂POX␈α∂or␈α∂XGPSER␈α∂as␈α∂to␈α∂how␈α∂large␈α∂(positive␈α∂or
␈↓ ↓H␈βπY␈↓βnegative)␈α∂the␈α∂baseline␈α∂offset␈α∂can␈α∂be,␈α∂except␈α∞that␈α∞each␈α∞line␈α∞of␈α∞text␈α∞must␈α∞fit␈α∞entirely␈α∞on␈α∞a␈α∞page,␈α∞and
␈↓ ↓H␈βπw␈↓βthings␈α
that␈α
are␈α
too␈α
complicated␈αwon't␈αwork,␈αespecially␈αif␈αthe␈αsystem␈αis␈αloaded.␈α_Without␈αthe␈αsimulator,
␈↓ ↓H␈βλ∃␈↓βPOX␈α∂makes␈α∞sure␈α∞the␈α∞XGPSER␈α∞range␈α∞of␈α∞-100␈α∞to␈α∞+77␈α∞(octal)␈α∞isn't␈α∞exceeded.␈α≤This␈α∞note␈α∞applies␈α∞to␈α∞the
␈↓ ↓H␈βλ1␈↓βvalue␈α⊃stored␈α⊃in␈α⊃register␈↓∂␈α⊃,␈↓β␈α⊃as␈α⊃well␈α⊃as␈α⊃the␈α⊃argument␈α⊃to␈α⊃the␈↓␈α⊂1␈↓∂↑␈↓β␈α⊂command␈α⊂and␈α⊂the␈α⊂negative␈α⊂of␈α⊂the
␈↓ ↓H␈βλO␈↓βargument␈α
to␈α
the␈↓␈α
1␈↓∂↓␈↓β␈α
command.
␈↓ ↓H␈βλm␈↓1␈↓∂∩␈↓β␈↓ ββ(U␈α∞J␈α∞CR␈α∞o)␈α∞--␈α∞up␈α∞to␈α∞default␈α∞superscript␈α∞location␈α∞(a␈α∞fixed␈α∞portion␈α∞of␈α∞the
␈↓ ββ␈β
␈↓βheight␈αof␈αcurrent␈αfont),␈αeasier␈αthan␈αstoring␈αa␈αpositive␈αconstant␈αin␈αregister
␈↓ ββ␈β #␈↓β","␈α∞or␈α∞setting␈α∞up␈α∞a␈α∞positive␈α∞constant␈α∞in␈α∞some␈α∞register␈↓ε␈α∞q␈↓β␈α
and␈α
then␈α
using
␈↓ ββ␈β A␈↓1␈↓∂↑␈↓εq␈↓β.
␈↓ ↓H␈β e␈↓1␈↓∂∪␈↓β␈↓ ββ(U␈α∞J␈α∞CR␈α∞o)␈α∞--␈α∞down␈α∞to␈α
default␈α
subscript␈α
location␈α
(a␈α
fixed␈α
portion␈α
of␈α
the
␈↓ ββ␈β
¬␈↓βheight␈αof␈αcurrent␈αfont),␈αeasier␈αthan␈αstoring␈αa␈αnegative␈αnumber␈αin␈αregister
␈↓ ββ␈β
≠␈↓β","␈α∞or␈α∞setting␈α∞up␈α∞a␈α∞positive␈α∞constant␈α∞in␈α∞some␈α∞register␈↓ε␈α∞q␈↓β␈α
and␈α
then␈α
using
␈↓ ββ␈β
9␈↓1␈↓∂↓␈↓εq␈↓β.
␈↓ ↓H␈β
]␈↓1␈↓∂⊗␈↓β␈↓ ββ(U␈αJ␈αCR␈αo)␈α--␈αback␈αto␈αnormal␈αbaseline␈αfrom␈α
superscript␈α
or␈α
subscript,␈α
don't
␈↓ ββ␈β
{␈↓βforget␈α
this!␈α
--␈α
easier␈α
than␈↓␈α
1␈↓∂↑=0;␈↓β␈α
or␈↓␈α
1␈↓∂↓=0;␈↓β␈α
or␈↓␈α
1␈↓∂←=0;␈↓1␈↓∂→,
␈↓ ¬≡␈β9␈↓βUNDERLINE OR FRACTION BAR
␈↓ α_␈βO␈↓βNote,␈αthe␈αposition␈αof␈αan␈αunderline␈α(including␈αall␈αscan-lines␈αof␈αthe␈↓␈α
1␈↓∂U␈↓εlatr␈↓β␈α
command)␈α
is␈α
restricted
␈↓ ↓H␈βu␈↓βto␈αa␈αrange␈αof␈α-100␈αto␈α+77␈α(octal).␈α⊗The␈αuser␈αwho␈αwants␈αfraction␈αbars␈αetc.␈αoutside␈αof␈αthat␈αrange␈αhas␈αat
␈↓ ↓H␈β∪␈↓βpresent␈α
only␈α
option,␈α
use␈α
the␈α
macros␈α
of␈α
H.␈α
P.␈αMoravec␈αwhich␈αsimulate␈αunderlines␈αby␈αpatching␈αtogether
␈↓ ↓H␈β1␈↓βthe␈αappropriate␈αnumber␈αof␈αgraphics␈αfont␈αcharacters␈αend␈αto␈αend.␈α⊗At␈αsome␈αfuture␈αtime␈αit␈αis␈αconceivable
␈↓ ↓H␈βO␈↓βthat␈α
POX␈αcould␈αconvert␈αunderlines␈αinto␈αvectors,␈αplaced␈αappropriately␈αon␈αthe␈αpage␈αto␈αhave␈αthe␈αdesired
␈↓ ↓H␈βm␈↓βeffect.␈α((This␈α∀proposed␈α∀feature␈α∀would␈α∀be␈α∀yet␈α∀another␈α∀miracle␈α∀of␈α∀the␈α∀"simulator",␈α∀not␈α∪available
␈↓ ↓H␈β
␈↓βotherwise.)
␈↓ ↓H␈β
!␈↓1␈↓∂U␈↓εlatr␈↓β␈↓ ββ(U␈α⊃J␈α⊃CR␈α⊃o)␈α⊃--␈α⊃underline␈α⊃from␈α⊃column␈↓ε␈α⊃l␈↓β␈α⊃to␈α⊃column␈↓ε␈α⊃r␈↓β,␈α⊃on␈α⊃scan␈α⊃line␈↓ε␈α⊂a
␈↓ ββ␈β
?␈↓βrelative␈α∀to␈α∀the␈α∀baseline␈α∀(␈↓εa␈↓β>0␈α∀moves␈α∀the␈α∀underline␈α∀down),␈α∀with␈α∪line
␈↓ ββ␈β
]␈↓βthickness␈↓ε␈α⊃t␈↓β␈α⊃(extending␈α⊃downward␈α⊃from␈α⊃scan␈α⊃line␈↓ε␈α⊃a␈↓β␈α⊃if␈↓ε␈α⊃t␈↓β>1).␈α"See␈α⊂the
␈↓ ββ␈β∞β␈↓βexample␈α∪at␈α∪the␈α∪end␈α∪of␈α∪these␈α∪commands.␈α&NOTE␈α∪--␈α∪This␈α∪command␈α∪is
␈↓ ββ␈β∞→␈↓βinefficient␈α2(when␈↓ε␈α2t␈↓β>1)␈α2because␈α1XGPSER␈α1doesn't␈α1support
␈↓ ββ␈β∞?␈↓βmore-than-one-scanline␈α∂underscores␈α∞and␈α∞hence␈α∞POX␈α∞must␈α∞break␈α∞up␈α∞this
␈↓ ββ␈β∞]␈↓βcommand␈α∩into␈α∩one␈α∩XGP␈α∩underscore␈α⊃per␈α⊃scan␈α⊃line,␈α⊃with␈α⊃column-selects
␈↓ ββ␈β∞{␈↓βbetween␈α
each.
␈↓ ↓H␈β∂↔␈↓1␈↓∂{␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o)␈α
--␈α
start␈α
underline,␈α
see␈α
UUO␈α
manual␈α
under␈α
XGP␈α
service.
␈↓ ∞␈↓α 8␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ∞␈↓α 9␈↓ ∧␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓1␈↓∂}␈↓εat␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o)␈α--␈αin␈αconjunction␈αwith␈↓␈α1␈↓∂{␈↓β,␈αend␈αunderline,␈αon␈αscan␈αline␈↓ε␈αa␈↓β␈αwith
␈↓ ββ␈β↓f␈↓βthickness␈↓ε␈α∂t␈↓β␈α∂(Note␈α∞that␈α∞this␈α∞command␈α∞isn't␈α∞correctly␈α∞implemented␈α∞in␈α∞POX
␈↓ ββ␈βα␈↓βversions␈α⊃before␈α⊃1975␈↓#↓ ␈↓#MAY␈↓#↓ ␈↓#11,␈α⊃so␈α⊃don't␈α⊂try␈α⊂to␈α⊂use␈α⊂this␈α⊂feature␈α⊂in␈α⊂old
␈↓ ββ␈βα*␈↓βbackups␈α
of␈α
POX␈α
or␈α
you␈α
will␈α
get␈α
quite␈α
confused.)
␈↓ α_␈βα@␈↓βNote,␈αthe␈↓␈α1␈↓∂{␈↓β␈αand␈↓␈α1␈↓∂}␈↓εat␈↓β␈αcommands␈αare␈αno␈αlonger␈αrecommended,␈αbecause␈αin␈αjustify␈αmode␈αif␈αa␈αline
␈↓ ↓H␈βαf␈↓βis␈α
broken␈α
in␈α
the␈α
middle␈α
of␈α
an␈α
underlined␈α
portion␈α
of␈α
text,␈α
POX␈α
hasn't␈α
yet␈α
seen␈α
the␈α
parameters␈α
to␈α
be␈α
used
␈↓ ↓H␈ββ∧␈↓βand␈αmust␈αguess␈αwhat␈αthey␈αare␈α(currently␈αPOX␈αassumes␈αthey␈αwill␈αbe␈↓∂␈α
=2;=2;␈↓β␈α
but␈α
warns␈α
the␈α
user␈α
in␈α
case
␈↓ ↓H␈ββ"␈↓βhe␈α∂didn't␈α∂expect␈α∞the␈α∞line␈α∞to␈α∞be␈α∞broken␈α∞and/or␈α∞didn't␈α∞want␈α∞to␈α∞use␈α∞those␈α∞parameters).␈α≤To␈α∞avoid␈α∞this
␈↓ ↓H␈ββ8␈↓βproblem,␈α
use␈α
the␈α
newer␈↓␈α
1␈↓∂[␈↓εat␈↓β␈α
and␈↓␈α
1␈↓∂]␈↓β␈α
pair␈α
of␈α
commands.
␈↓ ↓H␈ββV␈↓1␈↓∂[␈↓εat␈↓β␈↓ ββ(U␈αJ␈αCR␈αo)␈α--␈αstart␈αunderline,␈α
specifying␈α
starting-scanline␈α
and␈α
thickness␈α
at
␈↓ ββ␈ββ|␈↓βthe␈α∂outset␈α∂so␈α∂that␈α∂the␈α∞underline␈α∞can␈α∞be␈α∞broken␈α∞across␈α∞several␈α∞lines␈α∞of
␈↓ ββ␈β∧~␈↓βoutput␈α
automatically␈α
(especially␈α
useful␈α
in␈α
justify␈α
mode).
␈↓ ↓H␈β∧6␈↓1␈↓∂]␈↓β␈↓ ββ(U␈αJ␈αCR␈αo)␈α--␈αend␈αunderline␈αusing␈αparameters␈αspecified␈αin␈αthe␈αpreceeding
␈↓ ββ␈β∧N␈↓1␈↓∂[␈↓εat␈↓β␈α
command.
␈↓ βC␈β¬∩␈↓βENTER SPECIAL-FORMATTING MODES WITH ALTERNATE MARGINS
␈↓ ↓H␈β¬.␈↓1␈↓∂j␈↓β ␈↓1␈↓∂r␈↓β or ␈↓1␈↓∂c␈↓β␈↓ ββ(U)␈α↔--␈α↔same␈α↔as␈↓␈α↔1␈↓∂J␈↓␈α↔1␈↓∂R␈↓β␈α↔or␈↓␈α↔1␈↓∂C␈↓β␈α⊗(respectively)␈α⊗except␈α⊗they␈α⊗set␈α⊗up
␈↓ ββ␈β¬N␈↓βtemporary␈αmargins␈αfrom␈αregisters␈↓∂␈αl␈↓β␈αand␈↓∂␈αr␈↓β,␈αthen␈αrestore␈↓∂␈αL␈↓β␈αand␈↓∂␈αR␈↓β␈αto␈αtheir
␈↓ ββ␈β¬l␈↓βold␈α⊂values␈α⊂upon␈α∂exit.␈α≡[Note␈α∂that␈α∂a␈↓¬␈α∂<CR>␈↓β␈α∂occurring␈α∂inside␈α∂one␈α∂of␈α∂these
␈↓ ββ␈βελ␈↓βcommands,␈αsuch␈αas␈αwhen␈↓¬␈α<CR>␈↓β␈αon␈αinput␈αterminates␈↓␈α1␈↓∂r␈↓β␈αor␈↓␈α1␈↓∂c␈↓β,␈αwill␈αset␈αthe
␈↓ ββ␈βε(␈↓βpage␈α∞printer␈α∞at␈α∞the␈↓∂␈α∞l␈↓β␈α∞rather␈α∞than␈↓∂␈α∞L␈↓β␈α∞margin.␈α≤Thus,␈α
although␈α
only␈α
the␈↓∂␈α
r
␈↓ ββ␈βεF␈↓βregister␈α
needs␈α
to␈α
be␈α
loaded␈α
for␈α
the␈α
rightify␈α
per-se,␈α
the␈↓∂␈α
l␈↓β␈α
register␈αmust
␈↓ ββ␈βεd␈↓βbe␈α_loaded␈α_to␈α_something␈α_reasonable␈α_for␈α↔it␈α↔to␈α↔terminate␈α↔with␈↓¬␈α↔<CR>
␈↓ ββ␈βπα␈↓βcorrectly.]
␈↓ ∧∨␈βπ>␈↓βGENERATING AND QUOTING SPECIAL CHARACTERS
␈↓ ↓H␈βπZ␈↓1␈↓∂'␈↓¬<OCTAL DIGITS>␈↓∂;␈↓β␈↓ βS(U)␈α--␈α
accepts␈α
an␈α
octal␈α
value␈α
and␈α
transmits␈α
it␈α
preceded␈α
by␈α
a␈α
rubout.
␈↓ ββ␈βπz␈↓βThis␈α
is␈α
used␈α
for␈α
printing␈α
the␈α
characters␈α
that␈α
are␈α
hidden␈α
under␈α
octal␈α
values
␈↓ ββ␈βλ_␈↓β0,11,12,14,15␈α∞and␈α∞177.␈α∞WARNING␈α∞--␈α∞Octal␈α∞values␈α∞of␈α∞1␈α∞thru␈α∞4␈α∞will␈α∞cause
␈↓ ββ␈βλ6␈↓βXGP-escape␈αto␈αoccur,␈αthen␈αthe␈αXGP␈αservice␈αwill␈αeat␈αone␈αor␈αmore␈αbytes␈αof
␈↓ ββ␈βλT␈↓βwhatever␈αhappens␈αto␈αbe␈αnext␈αin␈αthe␈αoutput␈αfile.␈α⊗The␈αresult␈αis␈αthat␈αif␈αyou
␈↓ ββ␈βλr␈↓βhave␈α∞the␈α∞simulator␈α
on,␈α
or␈α
for␈α
any␈α
other␈α
reason␈α
cannot␈α
predict␈α
what␈α
the
␈↓ ββ␈β ⊂␈↓βnext␈α
bytes␈α
generated␈α
will␈α
be,␈α
unpredictable␈α
things␈α
may␈αoccur.␈α_The␈αonly
␈↓ ββ␈β .␈↓βreason␈α∂POX␈α∂does␈α∂not␈α∂generate␈α∂an␈α∂error␈α∂is␈α∂because␈α∂Ralph␈α∂Gorin␈α∂insists
␈↓ ββ␈β J␈↓βthat␈α∞old␈α∞files␈α∞that␈α∞do␈α∞such␈α∞things␈α∞as␈↓␈α∞1␈↓∂'3;↓↓␈↓β␈α∞(instead␈α∞of␈α
the␈α
preferable
␈↓ ββ␈β h␈↓1␈↓∂←'201;␈↓1␈↓∂Y␈↓β)␈αwill␈αcontinue␈αto␈αwork␈αas␈αthey␈αalways␈αdid.␈α
(Note,␈α
the␈α
function
␈↓ ββ␈β
ε␈↓βof␈α∞this␈α∞command␈α∞is␈α∞modified␈α∞by␈α∞the␈↓␈α∞1␈↓∂⊂'1000;␈↓β␈α∞or␈↓␈α∞1␈↓∂⊂'2000;␈↓β␈α∞command.)
␈↓ ββ␈β
$␈↓βIn␈α∞modes␈α∞other␈α∞than␈α∞U,␈α∞it␈α∞is␈α
necessary␈α
to␈α
use␈↓␈α
1␈↓∂A'␈↓¬<OCTAL␈α
DIGITS>␈↓∂;␈↓β␈α
to␈α
get
␈↓ ββ␈β
D␈↓βthis␈α
effect,␈α
and␈α
because␈αthat␈αcommand␈αdoes␈αthe␈α"right"␈αthing␈αin␈αall␈αcases
␈↓ ββ␈β
b␈↓βinstead␈α∀of␈α∀the␈α∀weirdnesses␈α∀discussed␈α∀above␈α∀for␈α∀this␈α∪command,␈α∪it␈α∪is
␈↓ ββ␈β␈↓βpreferable␈α
even␈α
in␈α
U␈α
mode.
␈↓ ↓H␈β≤␈↓1␈↓∂"␈↓¬<CH>␈↓β␈↓ ββ(U␈α∂[J*]␈α∂A)␈α∂--␈α∂Quote␈α∂the␈α∂character␈↓¬␈α∂<CH>␈↓β.␈α≡In␈α∂modes␈α∂(U␈α∂J␈α∞CR)␈α∞this␈α∞means
␈↓ ββ␈β<␈↓βplacing␈αa␈αrubout␈αin␈αfront␈α␈↓&only␈α
if␈α
necessary␈↓)αα␈α
to␈α
make␈α
the␈α
XGP␈α
print␈α
it␈α
in␈α
the
␈↓ ββ␈βZ␈↓βcurrent␈αfont␈αinstead␈αof␈αperforming␈αany␈αspecial␈αfunction.␈α⊗Special-function
␈↓ ββ␈βx␈↓βis␈αalso␈αsuppressed␈αas␈αfar␈αas␈αthe␈αjustification␈αalgorithm␈αis␈αconcerned,␈αthus
␈↓ ββ␈β⊗␈↓βa␈αspace␈αcharacter␈αquoted␈αby␈αthis␈αcommand␈αwon't␈αcause␈αa␈αword-break.␈α⊗If
␈↓ ββ␈β2␈↓βthe␈α∩current␈↓␈α∩1␈↓β␈α∩character␈α∩is␈α∩quoted,␈α∩it␈α⊃will␈α⊃go␈α⊃through␈α⊃as␈α⊃a␈α⊃character
␈↓ ββ␈βR␈↓βinstead␈α
of␈α
causing␈α
a␈α
brick␈α
command␈α
to␈α
begin.␈α~Only␈α
rubout␈α
and␈αnull␈αmay
␈↓ ββ␈βp␈↓βnot␈α
be␈α
quoted␈α
by␈α
this␈α
command.␈α
--␈α
In␈α
mode␈α
(A)␈α
nothing␈α
special␈α
happens
␈↓ ββ␈β
␈↓βexcept␈α
that␈α
if␈↓¬␈α
<CH>␈↓β␈α
is␈αthe␈αcurrent␈↓␈α1␈↓β␈αcharacter␈αor␈αa␈αcomma␈αor␈αone␈αof␈αthe
␈↓ ββ␈β
,␈↓βnesting␈α
characters␈α
being␈α
used,␈α
they␈α
are␈α
passed␈α
as␈α
characters␈αinstead␈αof
␈↓ ββ␈β
J␈↓βcausing␈αtheir␈αusual␈αspecial␈αfunction␈αto␈αoccur␈α(begin␈αbrick␈αcommand,␈αbreak
␈↓ ββ␈β
h␈↓βto␈αnext␈αargument,␈αchange␈αnesting␈α
depth,␈α
respectively).␈α∀--␈α
In␈α
justify␈α
mode,
␈↓ ββ␈β∞ε␈↓βthis␈α∂command␈α∂is␈α∂currently␈α∂implemented␈α∂only␈α∂for␈α∂the␈α∂characters␈α∂that␈α∞do
␈↓ ββ␈β∞$␈↓βnot␈α
require␈α
the␈α
'177␈α
prefix
␈↓ ↓H␈β∞@␈↓11␈↓β␈↓ ββ(U␈α∩J␈α∩CR␈α∩A)␈α∩[no␈α∩longer␈α∩recommended,␈α∩use␈↓␈α∩1␈↓∂"␈↓1␈↓β␈α⊃instead␈α⊃(see␈α⊃previous
␈↓ ββ␈β∞`␈↓βcommand)]␈α--␈αquotes␈αthe␈αescape␈αcharacter␈α--␈αtakes␈αprecedence␈αover␈αany
␈↓ ββ␈β∞}␈↓βother␈α∂command␈α∂that␈α∂parses␈α∂the␈α∂same␈α∂due␈α∂to␈α∂coincidence␈α∞of␈α∞characters,
␈↓ ββ␈β∂≤␈↓βthereby␈α≡making␈α≡that␈α≡other␈α≡command␈α≥unavailable␈α≥--␈α≥Please␈α≥use
␈↓ ∞␈↓α 9␈↓ ∧␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 10␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ββ␈β↓H␈↓1␈↓∂⊂'1000001;␈↓β␈α∂which␈α∂disables␈α∂this␈α∂crufty␈α∂old␈α∂undesirable␈α∂and␈α∞unneeded
␈↓ ββ␈β↓h␈↓βfeature,␈α
and␈α
thus␈α
unhides␈α
the␈α
other␈α
command)
␈↓ ↓H␈β↓}␈↓1␈↓∂A␈↓εq␈↓β␈↓ ββ(U␈α
[J*]␈α
A)␈α
--␈α
the␈α
seven␈α
low-order␈αbits␈αof␈↓ε␈αq␈↓β␈αare␈αassembled␈αinto␈αan␈αASCII
␈↓ ββ␈βα"␈↓βcharacter,␈α∂and␈↓␈α∂1␈↓∂"␈↓β␈α∂is␈α∂performed␈α∂on␈α∂that␈α∂character.␈α≡Note,␈α∂although␈α∂this
␈↓ ββ␈βαB␈↓βcommand␈α⊗is␈α⊗not␈α⊗yet␈α∃implemented␈α∃inside␈α∃justify␈α∃or␈α∃centerify/rightify
␈↓ ββ␈βα`␈↓βmodes,␈αif␈αyou␈αjust␈αwant␈αto␈αgenerate␈αa␈αfunny␈αcharacter␈αyou␈αdon't␈αhave␈αon
␈↓ ββ␈βα}␈↓βyour␈αterminal,␈αsuch␈αas␈αcurly␈αbrace,␈αthe␈αfollowing␈αtrick␈αmay␈αbe␈αused:␈α⊗Call
␈↓ ββ␈ββ≤␈↓βthe␈α∞EVAL␈α∞macro␈α∞(defined␈α
in␈α
the␈α
section␈α
on␈α
macros␈α
with␈α
arguments)␈α
with
␈↓ ββ␈ββ8␈↓βthe␈↓␈α
1␈↓∂A␈↓β...␈α→command␈αas␈αargument,␈αfor␈αexample␈↓∂␈α\!EVAL(\A'176;);␈↓β,␈αwhich
␈↓ ββ␈ββX␈↓βis␈α
legal␈αin␈αall␈αmodes.␈α_Of␈αcourse,␈αthis␈αwill␈αnot␈αhave␈αthe␈αright␈αeffect␈αif␈αthe
␈↓ ββ␈ββv␈↓βfunny␈α
character␈α
requires␈α
a␈α
rubout␈α
preceeding␈α
it.
␈↓ ↓H␈β∧␈↓1␈↓∂D␈↓εq␈↓β␈↓ ββ(U␈αJ␈αCR␈αo␈αA)␈α--␈αconverts␈↓ε␈αq␈↓β␈αinto␈αa␈αstring␈αof␈αdecimal␈α
digits␈α
representing␈α
its
␈↓ ββ␈β∧2␈↓βvalue,␈α
like␈↓∂␈α
CVS␈↓β␈α
in␈α
SAIL.
␈↓ ¬[␈β∧n␈↓βSTACK OPERATIONS
␈↓ ↓H␈β¬
␈↓1␈↓∂P␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
push␈α
ac.
␈↓ ↓H␈β¬(␈↓1␈↓∂p␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
pop␈α
ac.
␈↓ ↓H␈β¬@␈↓1␈↓∂Q␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
push␈α
register␈↓ε␈α
q␈↓β.
␈↓ ↓H␈β¬↑␈↓1␈↓∂q␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
pop␈α
to␈α
register␈↓ε␈α
q␈↓β.␈α
--␈α
READONLY␈α
operand␈α
not␈α
allowed.
␈↓ ↓H␈βεα␈↓1␈↓∂#␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
push␈α
the␈α
current␈α
font␈α
number␈α
(octal␈α
0␈α
to␈α
17).
␈↓ ↓H␈βε ␈↓1␈↓∂G␈↓β␈↓ ββ(U␈α⊃J␈α⊂o)␈α⊂--␈α⊂pop␈α⊂a␈α⊂number␈α⊂off␈α⊂the␈α⊂stack␈α⊂and␈α⊂use␈α⊂that␈α⊂number␈α⊂to␈α⊂do␈α⊂a
␈↓ ββ␈βε>␈↓βfont-select␈α⊂like␈↓␈α⊂1␈↓∂F␈↓β...␈α --␈α⊂must␈α⊂be␈α⊂in␈α⊂the␈α⊂range␈α⊂octal␈α⊂0␈α∂to␈α∂17␈α∂to␈α∂work
␈↓ ββ␈βε↑␈↓βcorrectly␈α
--␈α
not␈α
yet␈α
fully␈α
supported.
␈↓ β]␈βπ~␈↓βTEXT-MODE VECTORS (SEE ALSO ATOMIC VECTOR OVERLAY)
␈↓ ↓H␈βπ5␈↓1␈↓∂V␈↓εx␈↓β␈↓#n1␈↓εy␈↓β␈↓#n1␈↓εx␈↓β␈↓#n2␈↓εy␈↓β␈↓#n2␈↓εw
␈↓ ββ␈βπ←␈↓β(U)␈α∞--␈α∞draw␈α∞a␈α∞vector␈α∞of␈↓α␈α∞HORIZONTAL␈↓β␈α∞width␈↓ε␈α∞w␈↓β␈α
between␈α
(␈↓εx␈↓β␈↓#s1␈↓#,␈↓εy␈↓β␈↓#s1␈↓#)␈α
and
␈↓ ββ␈βλ∧␈↓β(␈↓εx␈↓β␈↓#s2␈↓#,␈↓εy␈↓β␈↓#s2␈↓#)␈α∃--␈α∃vectors␈α∃on␈α∃the␈α∃XGP␈α∃(at␈α∀SU-AI)␈α∀are␈α∀actually␈α∀tall␈α∀skinny
␈↓ ββ␈βλ/␈↓βparallelograms␈αwhich␈αget␈αincreasingly␈α
bad-looking␈α
as␈α
they␈α
approach␈α
being
␈↓ ββ␈βλR␈↓βhorizontal␈α--␈αPOX␈αdoes␈αnothing␈αto␈αimprove␈αthe␈αlooks␈αof␈αdiagonal␈αvectors,
␈↓ ββ␈βλu␈↓βbut␈α∞exactly␈α∞horizontal␈α∞vectors␈α∞(which␈α
wouldn't␈α
work␈α
at␈α
all␈α
normally)␈α
are
␈↓ ββ␈β _␈↓βreplaced␈α⊃by␈α⊃vertical␈α⊃vectors␈α⊃that␈α⊃are␈α⊃very␈α⊃very␈α⊃wide␈α⊃and␈α⊃very␈α⊃very
␈↓ ββ␈β 3␈↓βshort).␈α⊗Coordinates␈αare␈αmeasured␈αin␈αusual␈αXGP␈αcoordinates.␈↓ε␈α⊗x␈↓β␈α
increases
␈↓ ββ␈β V␈↓βfrom␈αleft␈αto␈αright,␈αwith␈↓ε␈αx␈↓β=0␈αbeing␈αthe␈αleft␈α
edge.␈↓ε␈α∀y␈↓β␈α
increases␈α
from␈α
top␈α
to
␈↓ ββ␈β y␈↓βbottom,␈α⊂with␈↓ε␈α⊂y␈↓β=0␈α⊂being␈α⊂the␈α⊂top␈α⊂edge.␈α∨Vectors␈α∂no␈α∂longer␈α∂have␈α∂to␈α∂be
␈↓ ββ␈β
≤␈↓βpresented␈α∂to␈α∞POX␈α∞with␈α∞MIN(␈↓εy␈↓β␈↓#s1␈↓#,␈↓εy␈↓β␈↓#s2␈↓#)␈α∞in␈α∞ascending␈α∞sequence␈α∞because␈α∞POX
␈↓ ββ␈β
G␈↓βnow␈α∩sorts␈α∩them␈α∩into␈α∩correct␈α∩sequence␈α∩automatically,␈α⊃but␈α⊃because␈α⊃the
␈↓ ββ␈β
j␈↓βsystem␈α∞requires␈α
both␈α
text␈α
and␈α
vectors␈α
to␈α
be␈α
sorted␈α
correctly,␈α
you␈α
must
␈↓ ββ␈β
␈↓βusually␈α⊃enable␈α⊃the␈α⊃text␈α⊃linefeed␈α⊃simulator␈α⊂(see␈α⊂note␈α⊂2)␈α⊂whenever␈α⊂you
␈↓ ββ␈β0␈↓βwant␈α∞ordinary␈α
text␈α
to␈α
appear␈α
below␈α
any␈α
vector␈α
or␈α
overlay␈α
on␈α
the␈α
same
␈↓ ββ␈βS␈↓βpage.␈α_One␈αfinal␈αwarning␈αwith␈αvectors␈αis␈αnot␈αto␈αattempt␈αto␈αdo␈αanything␈αat
␈↓ ββ␈βv␈↓βthe␈α∞very␈α∞top␈α∞of␈α∞the␈α∞first␈α∞page␈α
of␈α
output␈α
(the␈α
system␈α
needs␈α
time␈α
to␈α
get
␈↓ ββ␈β→␈↓βstarted␈α
loading␈α
buffers).
␈↓ ↓H␈β4␈↓1␈↓∂v␈↓εx␈↓β␈↓#n1␈↓εy␈↓β␈↓#n1␈↓εx␈↓β␈↓#n2␈↓εy␈↓β␈↓#n2␈↓εt
␈↓ ββ␈β↑␈↓β(U)␈α
--␈α
same␈α
as␈↓␈α
1␈↓∂V␈↓εx␈↓β␈↓#n1␈↓εy␈↓β␈↓#n1␈↓εx␈↓β␈↓#n2␈↓εy␈↓β␈↓#n2␈↓εw␈↓β␈α
except␈↓ε␈α
t␈↓β␈αis␈αthickness␈αperpendicular␈αto
␈↓ ββ␈β
␈↓βthe␈α
direction␈α
of␈α
the␈α
vector␈α
in␈α
all␈α
cases␈α
--␈αi.e.␈αfor␈αnon-horizontal␈αvectors
␈↓ ββ␈β
∨␈↓εw␈↓β=SQRT(␈↓εt␈↓β␈↓#
2␈↓#((␈↓εx␈↓β␈↓#s1␈↓#-␈↓εx␈↓β␈↓#s2␈↓#)␈↓#
2␈↓#+(␈↓εy␈↓β␈↓#s1␈↓#-␈↓εy␈↓β␈↓#s2␈↓#)␈↓#
2␈↓#)/(␈↓εy␈↓β␈↓#s1␈↓#-␈↓εy␈↓β␈↓#s2␈↓#)␈↓#
2␈↓#),␈α?␈αwhereas␈α?␈α
exactly
␈↓ ββ␈β
M␈↓βhorizontal␈αvectors␈αare␈αfixed␈αup␈αby␈αthis␈αcommand␈αthe␈αsame␈αas␈αby␈αthe␈↓␈α
1␈↓∂V␈↓β...
␈↓ ββ␈β
r␈↓βcommand␈α--␈αnote␈αthat␈αvectors␈αwhich␈αare␈α
almost␈α
but␈α
not␈α
exactly␈α
horizontal
␈↓ ββ␈β∞∃␈↓βstill␈α⊃come␈α⊃out␈α⊂quite␈α⊂ugly␈α⊂and␈α⊂usually␈α⊂overshoot␈α⊂their␈α⊂specified␈α⊂bottom
␈↓ ββ␈β∞8␈↓βends.
␈↓ ↓H␈β∞S␈↓1␈↓∂w␈↓εx␈↓β␈↓#n1␈↓εy␈↓β␈↓#n1␈↓εx␈↓β␈↓#n2␈↓εy␈↓β␈↓#n2␈↓εt
␈↓ ββ␈β∞}␈↓β(not␈α⊃implemented␈α⊃yet)␈α⊃--␈α⊂even␈α⊂better␈α⊂looking␈α⊂vectors␈α⊂that␈α⊂won't␈α⊂ever
␈↓ ββ␈β∂!␈↓βovershoot,␈α⊃but␈α⊃because␈α⊃they␈α⊃will␈α⊂be␈α⊂composed␈α⊂of␈α⊂four␈α⊂simple␈α⊂vectors
␈↓ π␈↓α 10␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 11␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ββ␈β↓H␈↓βeach,␈α∪they␈α∪might␈α∪overload␈α∪the␈α∪XGPSER␈α∪in␈α∪some␈α∪cases␈α∩and␈α∩not␈α∩work
␈↓ ββ␈β↓k␈↓βcorrectly.
␈↓ ¬¬␈βα'␈↓βCONTROLLING INTERLINE SPACING
␈↓ ↓H␈βαC␈↓1␈↓∂λ␈↓β␈↓ ββ(U)␈α--␈αuse␈αthe␈αcontents␈αof␈αthe␈αac␈αto␈αset␈αthe␈αinterline␈αspacing,␈αthat␈αis,␈αthe
␈↓ ββ␈βαc␈↓βminimum␈α∪number␈α∪of␈α∪blank␈α∪scan␈α∪lines␈α∪(1/200␈α∩inch)␈α∩between␈α∩the␈α∩very
␈↓ ββ␈ββ↓␈↓βbottom␈αof␈αeach␈αline␈αof␈αtext␈α(including␈αsubscripts)␈αand␈αthe␈αvery␈αtop␈αof␈αthe
␈↓ ββ␈ββ∨␈↓βnext␈α∂line␈α∂(including␈α∂superscripts).␈α≡This␈α∂parameter␈α∂has␈α∂different␈α∞effects
␈↓ ββ␈ββ=␈↓βdepending␈αon␈αwhether␈αthe␈αsimulator␈αis␈αenabled.␈α⊗With␈αthe␈αsimulator␈αon,␈αif
␈↓ ββ␈ββ[␈↓βthis␈αparameter␈αis␈αnegative␈α
it␈α
allows␈α
overlapping,␈α
if␈α
zero␈α
it␈α
allows␈α
bumping,
␈↓ ββ␈ββy␈↓βand␈α⊃if␈α⊃positive␈α⊃it␈α⊃forces␈α⊃a␈α⊃gap,␈α⊃i.e.␈α⊃it␈α⊃is␈α⊂completely␈α⊂logical.␈α With␈α⊂the
␈↓ ββ␈β∧↔␈↓βsimulator␈α∞off␈α∞it␈α∞doesn't␈α∞take␈α
effect␈α
until␈α
after␈α
the␈α
next␈α
text␈α
line,␈α
and␈α
its
␈↓ ββ␈β∧5␈↓βinterpretation␈α⊃depends␈α⊃on␈α⊃its␈α⊃sign:␈α"positive␈α⊃is␈α⊃the␈α⊃same␈α⊃as␈α⊂with␈α⊂the
␈↓ ββ␈β∧S␈↓βsimulator␈αon,␈αzero␈αor␈αnegative␈αmeans␈αsystem␈αdefault␈αwhatever␈αit␈αis␈αtoday
␈↓ ββ␈β∧q␈↓β(recently␈α
it␈α
has␈α
had␈α
the␈α
value␈α
4).
␈↓ ↓H␈β¬
␈↓1␈↓∂ε␈↓β␈↓ ββ(U)␈α∂--␈α∂use␈α∂the␈α∂contents␈α∂of␈α∞the␈α∞ac␈α∞to␈α∞set␈α∞the␈α∞interbase␈α∞spacing,␈α∞i.e.␈α∞the
␈↓ ββ␈β¬-␈↓βminimum␈αnumber␈αof␈αscan␈αlines␈αthat␈αbaselines␈αare␈αforced␈αapart.␈α⊗When␈αthe
␈↓ ββ␈β¬K␈↓βsimulator␈α⊗is␈α⊗on,␈α⊗this␈α⊗parameter␈α⊗together␈α⊗with␈α⊗the␈α⊗interline␈α⊗spacing
␈↓ ββ␈β¬i␈↓βdetermine␈α
how␈α
far␈α
apart␈α
lines␈α
will␈α
be␈α
(each␈α
line␈α
is␈α
placed␈α
as␈αhigh␈αup␈αon
␈↓ ββ␈βεπ␈↓βthe␈α⊂page␈α⊂as␈α⊂is␈α∂possible␈α∂without␈α∂violating␈α∂either␈α∂constraint).␈α≡When␈α∂the
␈↓ ββ␈βε%␈↓βsimulator␈α
is␈α
off,␈α
this␈α
parameter␈α
is␈α
ignored␈α
and␈α
only␈α
the␈α
interline␈αspacing
␈↓ ββ␈βεC␈↓βhas␈α⊂any␈α⊂effect.␈α --␈α⊂A␈α⊂logical␈α⊂consequence␈α⊂of␈α⊂the␈α⊂above␈α⊂is␈α⊂that␈α⊂if␈α∂the
␈↓ ββ␈βεa␈↓βinterline␈α∂spacing␈α∂is␈α∂very␈α∂negative,␈α∂then␈α∂only␈α∂the␈α∂interbase␈α∂spacing␈α∂has
␈↓ ββ␈βε␈␈↓βany␈α∃effect,␈α∃and␈α∃you␈α∀get␈α∀evenly␈α∀spaced␈α∀lines␈α∀even␈α∀if␈α∀they␈α∀overlap;
␈↓ ββ␈βπ≥␈↓βwhereas␈α
if␈α
interbase␈α
spacing␈α
is␈α
zero␈α
and␈αinterline␈αspacing␈αis␈αreasonable,
␈↓ ββ␈βπ;␈↓βthen␈α
in␈α
most␈α
cases␈α
only␈α
interline␈α
spacing␈α
will␈α
be␈αin␈αcontrol,␈αand␈αyou␈αwill
␈↓ ββ␈βπY␈↓βget␈α⊃lines␈α⊃with␈α⊃the␈α⊃same␈α⊃amount␈α⊃of␈α⊃space␈α⊃between␈α⊃each␈α⊃pair,␈α⊃even␈α⊂if
␈↓ ββ␈βπw␈↓βdiffering␈α
amounts␈α
of␈α
subscripts␈α
etc.␈α
cause␈α
irregular␈α
spacing␈α
to␈α
occur.
␈↓ βa␈βλ3␈↓βRESET VERTICAL POSITION FOR TEXT (SEE ALSO OVERLAYS)
␈↓ ↓H␈βλI␈↓1␈↓∂Y␈↓εq␈↓β␈↓ ββ(U)␈α--␈αset␈αabsolute␈αY␈αposition␈αfor␈αtop␈αscan␈α
line␈α
of␈α
this␈α
text␈α
line␈α
relative␈α
to
␈↓ ββ␈βλo␈↓βtop␈α
of␈α
page␈α
(if␈α
no␈α
text␈α
line␈α
is␈α
currently␈α
active,␈α
apply␈α
to␈α
the␈α
next␈α
text␈α
line).
␈↓ ββ␈β ¬␈↓βIncreasing␈↓ε␈α
q␈↓β␈α
moves␈αdown␈αthe␈αpage!␈α_Text␈αafter␈αthis␈αline␈αwill␈αbe␈αbelow␈αit
␈↓ ββ␈β +␈↓βon␈α⊂the␈α⊂page␈α⊂unless␈α⊂POX␈α⊂or␈α⊂the␈α⊂XGPSER␈α∂decides␈α∂it␈α∂is␈α∂too␈α∂close␈α∂to␈α∂the
␈↓ ββ␈β I␈↓βbottom␈α∞of␈α∞the␈α
page␈α
and␈α
inserts␈α
a␈α
page␈α
mark.␈α~Do␈α
not␈α
use␈α
this␈α
command
␈↓ ββ␈β g␈↓βinside␈α∞your␈α∞EVERYPAGE␈α∞macro␈α∞unless␈α∞you␈α∞restore␈α∞the␈α∞Y-location␈α∞of␈α∞the
␈↓ ββ␈β
¬␈↓βmain␈αpage␈αprinter␈αbefore␈αreturning␈αfrom␈αyour␈αmacro␈αto␈αthe␈αmainline␈αtext!
␈↓ ββ␈β
≠␈↓β--␈α
WARNING␈α
--␈α
If␈↓ε␈α
q␈↓β␈α
is␈α
very␈αlarge␈αit␈αwill␈αprobably␈αmake␈αthe␈αXGP␈αspooler
␈↓ ββ␈β
A␈↓βgo␈α
beserk.
␈↓ ↓H␈β
W␈↓1␈↓∂y␈↓εq␈↓β␈↓ ββ(U)␈α∩--␈α∩The␈α∩simulator␈α∩maintains␈α⊃two␈α⊃parameters␈α⊃that␈α⊃tell␈α⊃it␈α⊃where␈α⊃the
␈↓ ββ␈β
⎇␈↓βbaseline␈α∂and␈α∂the␈α∂last-scanline␈α∂were␈α∂in␈α∂the␈α∂previously-emitted␈α∂text␈α∞line,
␈↓ ββ␈β≠␈↓βwhich␈α
are␈α
used␈α
by␈α
the␈α
simulator␈α
to␈α
decide␈α
where␈α
the␈α
next␈α
text␈α
line␈α
will
␈↓ ββ␈β1␈↓βbe␈αplaced.␈α⊗This␈αcommand␈αadds␈↓ε␈αq␈↓β␈αto␈αwhatever␈αis␈α
in␈α
these␈α
two␈α
parameters
␈↓ ββ␈βW␈↓βat␈αthe␈αmoment,␈αthus␈αforcing␈αthe␈αnext␈αtext␈αline␈αdown␈αby␈αthat␈α
amount␈α
(up␈α
if
␈↓ ββ␈βm␈↓εq␈↓β␈αis␈αnegative)␈αor␈αforcing␈α
it␈α
to␈α
the␈α
next␈α
page␈α
of␈α
output.␈α∀In␈α
the␈α
case␈α
where
␈↓ ββ␈β∪␈↓βthe␈αline␈αis␈αforced␈αonto␈αthe␈αnext␈αpage,␈αit␈αwill␈αbe␈αplaced␈αexactly␈αat␈αthe␈αtop
␈↓ ββ␈β)␈↓βmargin␈α
regardless␈α
of␈α
the␈α
size␈α
of␈↓ε␈α
q␈↓β,␈α
so␈α
this␈α
command␈αis␈αespecially␈αuseful
␈↓ ββ␈βO␈↓βfor␈αplacing␈αa␈αgap␈αjust␈αbefore␈αbeginning␈αa␈αnew␈αsection␈αin␈αa␈αdocument.␈α⊗--
␈↓ ββ␈βk␈↓βIf␈α
a␈↓␈α
1␈↓∂Y␈↓β...␈α
command␈α
has␈α
been␈α
done␈α
and␈α
not␈α
yet␈α
acted␈α
upon,␈α
the␈αeffect␈αof
␈↓ ββ␈β
␈↓βthe␈↓␈α1␈↓∂y␈↓β...␈αcommand␈αis␈αto␈αadd␈αto␈αthe␈↓␈α1␈↓∂Y␈↓β␈αvalue␈αinstead␈αof␈αadding␈αto␈αthe␈αtwo
␈↓ ββ␈β
)␈↓βparameters.
␈↓ ↓H␈β
?␈↓1␈↓∂B␈↓εq␈↓β␈↓ ββ(U␈α∂J␈α∂CR␈α∂o␈α∂A)␈α∂--␈α∂Set␈α∞bottom␈α∞margin␈α∞in␈α∞POX␈α∞to␈α∞be␈↓ε␈α∞q␈↓β␈α∞(relative␈α∞to␈α∞top␈α∞of
␈↓ ββ␈β
e␈↓βpage,␈α∪in␈α∪1/200␈α∪inch␈α∪units).␈α&This␈α∩command␈α∩only␈α∩has␈α∩effect␈α∩with␈α∩the
␈↓ ββ␈β∞β␈↓βsimulator␈α
on.
␈↓ ↓H␈β∞→␈↓1␈↓∂b␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
Read␈α
the␈α
current␈α
bottom-margin␈α
and␈α
put␈α
it␈α
in␈↓ε␈α
q␈↓β.
␈↓ ↓H␈β∞7␈↓1␈↓∂T␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈αo␈αA)␈α--␈αSet␈αtop␈αmargin␈αin␈αPOX␈α(only␈αeffective␈αif␈αsimulator␈αis␈αon).
␈↓ ββ␈β∞]␈↓βThis␈αwill␈αalways␈α
affect␈α
later␈α
pages,␈α
but␈α
will␈α
only␈α
affect␈α
the␈α
current␈α
page␈α
if
␈↓ ββ␈β∞{␈↓βno␈αtext␈αhas␈αyet␈αbeen␈αemitted␈αon␈αit␈α(technically␈α
if␈α
no␈α
complete␈α
line␈α
has␈α
yet
␈↓ ββ␈β∂→␈↓βbeen␈α
emitted␈α
on␈α
the␈α
page).
␈↓ π␈↓α 11␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 12␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓1␈↓∂t␈↓εq␈↓β␈↓ ββ(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
Read␈α
current␈α
top␈α
margin␈α
and␈α
store␈α
it␈α
in␈↓ε␈α
q␈↓β.
␈↓ ∧x␈βα␈↓βMISC. COMMANDS NOT OFTEN USED
␈↓ ↓H␈βα"␈↓1␈↓∂u␈↓εq␈↓β␈↓ ββ(U␈αJ␈αCR␈αo␈αA)␈α--␈αgenerates␈αand␈αexecutes␈αa␈αCALLI␈αUUO␈αusing␈αthe␈αright␈αhalf
␈↓ ββ␈βα@␈↓βof␈↓ε␈α
q␈↓β,␈α
thus␈↓␈α
1␈↓∂u'400012;␈↓β␈α
will␈α
perform␈α
a␈↓∂␈α
CALLI␈α
400012␈↓β␈α--␈αthe␈αac␈αis␈αused
␈↓ ββ␈βαf␈↓βto␈α∞supply␈α∞data␈α∞to␈α∞some␈α∞UUO's,␈α∞and␈α∞to␈α∞return␈α∞data␈α∞to␈α
the␈α
program␈α
after
␈↓ ββ␈ββ∧␈↓βsome␈α
UUO'S␈α
--␈α
if␈α
the␈α
ac␈α
field␈α
of␈α
the␈αinstruction␈αis␈αused␈αin␈αa␈αspecial␈αway
␈↓ ββ␈ββ"␈↓βother␈α
than␈α
merely␈α
pointing␈α
to␈α
data,␈α
then␈α
it␈α
isn't␈α
guaranteed␈α
to␈α
work␈αthe
␈↓ ββ␈ββ@␈↓βway␈αyou␈αwant␈α--␈αthe␈α.SKIP.␈αflag␈α(ala␈αSAIL)␈αis␈α
returned␈α
in␈α
register␈↓∂␈α
u␈↓β␈α
--␈α
see
␈↓ ββ␈ββ↑␈↓βthe␈α
UUO␈α
manual␈α
for␈α
details.
␈↓ ↓H␈ββz␈↓1␈↓∂S␈↓β␈↓ ββ(U)␈α↔--␈α↔generates␈α↔a␈α⊗sample␈α⊗of␈α⊗the␈α⊗currently-selected␈α⊗font␈α⊗--␈α⊗type
␈↓ ββ␈β∧→␈↓∂HELP␈↓#↓ ␈↓#FONT␈↓β␈α
for␈α
other␈α
ways␈α
to␈α
get␈α
samples␈α
of␈α
fonts.
␈↓ β[␈β∧Q␈↓Examples of commands using register arguments etc.
␈↓ α_␈β∧r␈↓βIn␈α⊂this␈α⊂writeup,␈α⊂the␈↓␈α⊂1␈↓∂j␈↓β␈α⊂command␈α⊂is␈α⊂used␈α⊂to␈α⊂generate␈α⊂the␈α⊂indented␈α⊂paragraph␈α∂of␈α∂description
␈↓ ↓H␈β¬
␈↓βalongside␈α⊃the␈α⊃syntax␈α⊃of␈α⊃each␈α⊃command.␈α"The␈α⊂sequence␈↓␈α⊂1␈↓∂←␈↓εq␈↓1␈↓∂→.␈↓β␈α⊂is␈α⊂used␈α⊂sometimes␈α⊂to␈α⊂set␈α⊂column
␈↓ ↓H␈β¬0␈↓βposition␈α
for␈α
single-line␈α
descriptions␈α
and␈α
to␈α
align␈α
text␈α
in␈α
some␈α
of␈α
the␈α
tabular␈α
presentations.
␈↓ ↓H␈β¬l␈↓∧Example showing how to do a simple subscript:
␈↓ ↓H␈βελ␈↓1␈↓∂F3x␈↓1␈↓∂∪1␈↓1␈↓∂⊗+x␈↓1␈↓∂∪2␈↓1␈↓∂⊗+...+x␈↓1␈↓∂∪n␈↓1␈↓∂⊗+x␈↓1␈↓∂∪n+1␈↓1␈↓∂⊗
␈↓ ↓H␈βε(␈↓βx␈↓#s1␈↓#+x␈↓#s2␈↓#+...+x␈↓#sn␈↓#+x␈↓#sn+1␈↓#
␈↓ ↓H␈βεd␈↓∧Example of making five columns on a page, $ is the escape char:
␈↓ ↓H␈βπα␈↓∂$←R$-L$/'5;$→W$;␈↓ εHregister W contains width of a column
␈↓ ↓H␈βπ ␈↓∂$←L$→1$+W$→2$+W$→3$+W$→4$+W$→5$;␈↓ εHregisters 1,2,3,4,5 contain the column loc's
␈↓ ↓H␈βπ>␈↓∂$←1$→.Hello$←2$→.This$←3$→.Is$←4$→.A$←5$→.Test.
␈↓ ↓H␈βπ\␈↓∂$←1$→.These$←2$→.Columns$←3$→.Are$←4$→.Nicely$←5$→.Aligned.
␈↓ ↓H␈βπz␈↓βHello␈↓ βNThis␈↓ ¬TIs␈↓ πZA␈↓ `Test.
␈↓ ↓H␈βλ_␈↓βThese␈↓ βNColumns␈↓ ¬TAre␈↓ πZNicely␈↓ `Aligned.
␈↓ ↓H␈βλT␈↓∧Example of hidden characters, $ is the escape char:
␈↓ ↓H␈βλr␈↓∂$FF$'0;$'11;$'12;$'14;$'15;$'177;
␈↓ ↓H␈β ⊂␈↓∂␈␈ ␈
␈␈
␈␈
␈↓ ↓H␈β L␈↓∂$F1This shows how to $←.$→1underline$U1=3;=2;. a word in a line of text.
␈↓ ↓H␈β e␈↓This shows how to underline␈↓ βa␈↓!β↓β␈↓ βa␈↓!∧↓β␈↓ ∧d a word in a line of text.
␈↓ ↓H␈β
&␈↓∂$F3$J␈↓ αHThis paragraph is an example of how to insert something
␈↓ ↓H␈β
D␈↓∂like X$←.$→1$∩n$←.$→2$←1$→.$∪i$←.$~2$→.$⊗ in the middle of a paragraph of
␈↓ ↓H␈β
b␈↓∂justified text using the "." register that represents the current column
␈↓ ↓H␈β␈↓∂$←.$→1$∩loca$←.$→2$←1$→.$↓=05;posi$←.$~2$→.$⊗tion
␈↓ ↓H␈β≡␈↓∂relative to the beginning of the current word.$.
␈↓ α_␈β/␈↓βThis␈αparagraph␈αis␈αan␈αexample␈αof␈αhow␈αto␈αinsert␈αsomething␈αlike␈αX␈↓#
n␈↓#s␈αqi␈↓#␈α∪in␈αthe␈αmiddle␈αof␈αa␈α
paragraph␈α
of
␈↓ ↓H␈βY␈↓βjustified␈α∀text␈α∀using␈α∪the␈α∪"."␈α∪register␈α∪that␈α∪represents␈α∪the␈α∪current␈α∪column␈↓#
␈α∪loca␈↓#{␈αOposi␈↓#tion␈α∪relative␈α∪to␈α∪the
␈↓ ↓H␈β∧␈↓βbeginning␈α
of␈α
the␈α
current␈α
word.
␈∧1 X␈}+Hα␈∧1 X↓UHα␈↓ ↓H␈β@␈↓∂$←=2;$→V$←;$-=100;$→A$+=27;$→B$+=45;$→C$;
␈∧L 0αP␈∧L 0ε≤-α␈∧L
␈yd-α␈↓ ↓H␈β↑␈↓∂$←=1200;$→a$+=10;$→b$+=30;$→c$+=30;$→d$+=10;$→e$;
␈↓ ↓H␈β|␈↓∂$VaBeBV$VaBdCV$VcAbCV$VcAdCV$VbCeBV$; draw 5-point star of constant width
␈∧
) X␈}+Hα␈∧
) X↓UHα␈↓ ↓H␈β
8␈↓∂$←=2;$→V$←;$-=100;$→A$+=27;$→B$+=45;$→C$;
␈∧
D 0αP␈∧
D 0ε≤-β␈∧
D
␈yd-β␈↓ ↓H␈β
V␈↓∂$←=1200;$→a$+=10;$→b$+=30;$→c$+=30;$→d$+=10;$→e$;
␈↓ ↓H␈β
t␈↓∂$vaBeBV$vaBdCV$vcAbCV$vcAdCV$vbCeBV$; draw 5-point star of constant thickness
␈↓ ↓H␈β∞0␈↓∂$←;$-=20;$→:$v=1400;;=1300;:=20;$; sample of a very ugly vector
␈∧∞S
∀∀∀e␈↓ π␈↓α 12␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 13␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ε␈β↓H␈↓OVERLAYS
␈↓ α_␈β↓k␈↓βAn␈↓α␈αoverlay␈↓β␈αis␈αlike␈αa␈αblack-on-clear␈αtransparency.␈α_Overlays␈αcan␈αbe␈αset␈αup␈αby␈αfeeding␈αthem␈αtext
␈↓ ↓H␈βα ␈↓βor␈α
vectors␈α
(someday␈α
perhaps␈α
also␈α
video␈α
and␈α
III/DD␈α
buffers),␈α
and␈αseveral␈αoverlays␈αcan␈αbe␈αplaced␈αover
␈↓ ↓H␈βα'␈↓βone␈αanother␈αand␈αglued␈αtogether␈αto␈αmake␈αa␈αcompound␈αoverlay,␈αwhich␈αthen␈αcan␈αbe␈αfurther␈αprocessed␈αin
␈↓ ↓H␈βαE␈↓βsimilar␈α
ways.␈α∀Eventually,␈α
overlays␈α
are␈α
placed␈α
in␈α
the␈α
output␈α
file.
␈↓ α_␈βαc␈↓βAll␈αcontents␈αof␈αan␈αoverlay␈αare␈αpositioned␈αrelative␈αto␈αan␈αarbitrary␈↓α␈αbasepoint␈↓β.␈α⊗When␈αoverlays␈αare
␈↓ ↓H␈ββ↓␈↓βplaced␈αon␈αtop␈αof␈αone-another␈αand␈αglued,␈αthe␈αx,y␈αoffset␈αof␈αthe␈α
basepoint␈α
of␈α
each␈α
component␈α
is␈α
specified
␈↓ ↓H␈ββ∨␈↓βrelative␈αto␈αthe␈αbasepoint␈αof␈αthe␈αoperation␈αas␈αa␈αwhole,␈αthus␈αoverlays␈α
can␈α
be␈α
made␈α
to␈α
fit␈α
side-by-side␈α
or
␈↓ ↓H␈ββ=␈↓βabove-and-below␈α⊗or␈α⊗partially-overlapped␈α⊗or␈α⊗whatever.␈α+Defaults␈α∃are␈α∃available␈α∃in␈α∃some␈α∃of␈α∃the
␈↓ ↓H␈ββ[␈↓βoperations.
␈↓ α_␈ββy␈↓βIn␈α∪typical␈α∪applications,␈α∪overlays␈α∪act␈α∩as␈α∩data,␈α∩and␈α∩macros␈α∩that␈α∩call␈α∩the␈α∩overlay-manipulation
␈↓ ↓H␈β∧↔␈↓βcommands␈α
act␈α
as␈α
subroutines␈α
(see␈α
next␈α
section␈α
for␈α
macros).
␈↓ ↓H␈β∧Q␈↓1␈↓∂o␈↓¬<NAME><OPEN><CH><BODY><CLOSE>
␈↓ β↔␈β∧q␈↓β(U␈αJ␈αCR␈αo␈αA)␈α--␈α[Note␈αthat␈αthe␈αpair␈αof␈αnesting␈αcharacters␈α(␈α
and␈α
)␈α
are␈α
not
␈↓ β↔␈β¬∂␈↓βallowed␈α∃in␈α∃this␈α∃particular␈α∃syntax.␈α*The␈α∀reason␈α∀is␈α∀that␈α∀the␈α∀syntax
␈↓ β↔␈β¬-␈↓¬<OPEN><CH><BODY><CLOSE>␈↓β␈α
will␈α
represent␈α
something␈α
like␈α
an␈α
atom,␈α
with␈α
"("
␈↓ β↔␈β¬K␈↓βand␈α
")"␈αreserved␈αfor␈αgenerating␈αs-expressions,␈αif␈αand␈αwhen␈αI␈αimplement
␈↓ β↔␈β¬i␈↓βa␈αsubset␈αof␈αLISP␈αinside␈αPOX.]␈α⊗If␈↓¬␈α<CH>␈↓β␈αis␈α
"␈↓∂V␈↓β"␈α
then␈α
define␈α
an␈α
atomic␈α
vector
␈↓ β↔␈β¬␈␈↓βoverlay␈α(syntax␈αis␈αsame␈αas␈αthe␈↓␈α1␈↓∂V␈↓εx␈↓β␈↓#n1␈↓εy␈↓β␈↓#n1␈↓εx␈↓β␈↓#n2␈↓εy␈↓β␈↓#n2␈↓εw␈↓β␈αcommand␈αwithout␈αthe
␈↓ β↔␈βε)␈↓βinitial␈↓␈α1␈↓β␈αcharacter,␈αeffect␈α(semantics)␈αis␈αthe␈αsame␈αexcept␈αthat␈α(0,0)␈αis␈αat
␈↓ β↔␈βεI␈↓βthe␈α∂relocatable␈α∂basepoint␈α∂rather␈α∂than␈α∂at␈α∞the␈α∞upper-left␈α∞corner␈α∞of␈α∞the
␈↓ β↔␈βεg␈↓βoutput␈α⊃page)␈α⊃else␈α⊃if␈α⊃<ch>␈α⊃is␈α⊂a␈α⊂period␈α⊂or␈α⊂a␈α⊂font␈α⊂number␈α⊂then␈α⊂define
␈↓ β↔␈βπ¬␈↓βatomic␈α↔text␈α↔overlay␈α↔with␈α↔font␈↓¬␈α⊗<CH>␈↓β␈α⊗(the␈α⊗basepoint␈α⊗is␈α⊗set␈α⊗at␈α⊗the
␈↓ β↔␈βπ#␈↓βintersection␈α∃of␈α∃the␈α∃left␈α∃edge␈α∀of␈α∀the␈α∀first␈α∀character␈α∀with␈α∀the␈α∀font
␈↓ β↔␈βπA␈↓βbaseline)␈αelse␈αerror␈α--␈αIf␈αthere␈αis␈αalready␈αan␈αoverlay␈αby␈α
the␈α
same␈α
name,
␈↓ β↔␈βπ←␈↓βthe␈α
old␈α
one␈α
may␈α
or␈α
may␈α
not␈α
be␈α
deleted,␈α
so␈α
beware.
␈↓ ↓H␈βπ{␈↓1␈↓¬n<NAME>␈↓∂;␈↓β␈↓ β↔(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
load␈α
parameter␈↓¬␈α
n␈↓β␈α
of␈α
overlay␈α
into␈α
ac,␈α
see␈αthe␈αfollowing
␈↓ β↔␈βλ≠␈↓βtable:
␈↓ αH␈βλ9␈↓¬n␈↓∂␈↓ βHname␈↓β␈↓ ∧Hmeaning (all quantities are usually nonnegative)
␈↓ αH␈βλW␈↓∂1␈↓ βHLLIM␈↓β␈↓ ∧Hdistance from left edge to basepoint
␈↓ αH␈βλu␈↓∂2␈↓ βHRLIM␈↓β␈↓ ∧Hdistance from basepoint to right edge (LLIM+1+RLIM = total width)
␈↓ αH␈β ∪␈↓∂3␈↓ βHTLIM␈↓β␈↓ ∧Hdistance from top edge to basepoint
␈↓ αH␈β 1␈↓∂4␈↓ βHBLIM␈↓β␈↓ ∧Hdistance from basepoint to bottom edge (TLIM+1+BLIM = total height)
␈↓ αH␈β O␈↓∂5␈↓ βHTLIM1␈↓β␈↓ ∧Hdistance from top nonblank scan line to basepoint (see bug 2)
␈↓ αH␈β m␈↓∂6␈↓ βHBLIM1␈↓β␈↓ ∧Hdistance from basepoint to bottom nonblank scan line (see bug 2)
␈↓ ↓H␈β
␈↓1␈↓∂:␈↓¬n<NAME>␈↓∂;␈↓β␈↓ β↔(U␈α∂J␈α∂CR␈α∂o␈α∂A)␈α∂--␈α∂clobber␈α∂parameter␈↓¬␈α∂n␈↓β␈α∞of␈α∞overlay␈α∞from␈α∞contents␈α∞of␈α∞ac,
␈↓ β↔␈β
'␈↓βthereby␈α⊃making␈α⊃it␈α⊃"lie"␈α⊃if␈α⊃this␈α⊃parameter␈α⊃is␈α⊂later␈α⊂queried␈α⊂by␈α⊂the␈↓␈α⊂1␈↓¬n
␈↓ β↔␈β
G␈↓βcommand␈α∂(occasionally␈α∂useful␈α∞to␈α∞interface␈α∞with␈α∞macros),␈α∞only␈α∞the␈α∞right
␈↓ β↔␈β
e␈↓βhalfword␈α∂is␈α∂used,␈α∂interpreted␈α∂as␈α∂a␈α∂signed-halfword␈α∂in␈α∂2's␈α∞complement
␈↓ β↔␈ββ␈↓βnotation.
␈↓ ↓H␈β→␈↓1␈↓∂&␈↓¬<NAME_OF_RESULT>␈↓∂←␈↓¬<NAME␈↓#v1␈↓#>␈↓∂,␈↓εx␈↓¬␈↓#t1␈↓εy␈↓¬␈↓#t1␈↓∂&␈↓¬<NAME␈↓#v2␈↓#>␈↓∂,␈↓εx␈↓¬␈↓#t2␈↓εy␈↓¬␈↓#t2␈↓∂&...&␈↓¬<NAME␈↓#vn␈↓#>␈↓∂,␈↓εx␈↓¬␈↓#tn␈↓εy␈↓¬␈↓#tn␈↓∂;
␈↓ β↔␈β?␈↓β(U␈αJ␈αCR␈αo␈αA)␈α--␈αcombine␈αoverlays␈αby␈αlaying␈αthem␈αat␈αvarious␈αoffsets␈αand
␈↓ β↔␈βP␈↓βgluing␈α
them␈α
together␈α
to␈α
make␈α
a␈α
composite␈α
overlay␈α
--␈α
for␈α
i=1,2,..,n␈α
the␈α
i␈↓#
th␈↓#
␈↓ β↔␈βs␈↓βcomponent␈αoverlay␈αis␈αshifted␈αso␈αthat␈αits␈αbase␈αpoint␈αis␈αlocated␈αat␈α(␈↓εx␈↓β␈↓#si␈↓#,␈↓εy␈↓β␈↓#si␈↓#)
␈↓ β↔␈β→␈↓βrelative␈α∪to␈α∩the␈α∩logical␈α∩basepoint␈α∩of␈α∩the␈α∩resultant␈α∩overlay␈α∩--␈α∩all␈α∩six
␈↓ β↔␈β7␈↓βparameters␈α∂are␈α∂computed␈α∂according␈α∂to␈α∂the␈α∂offsets␈α∂and␈α∂parameters␈α∂of
␈↓ β↔␈βU␈↓βthe␈α
components␈α
--␈α
if␈α
you␈α
leave␈α
out␈α
the␈α
comma␈αand␈αxy␈αarguments␈αfrom
␈↓ β↔␈βs␈↓βany␈αcomponent,␈αit␈αwill␈αplace␈αthat␈αcomponent␈αjust␈αto␈αthe␈αright␈αof␈αwhat␈αis
␈↓ β↔␈β
⊃␈↓βalready␈α
prepared,␈α
and␈α
use␈α
0␈α
for␈α
the␈α
y-offset.
␈↓ ↓H␈β
'␈↓1␈↓∂O␈↓¬<NAME>␈↓∂,␈↓εxy
␈↓ ↓H␈β
E␈↓1␈↓∂W␈↓¬<NAME>␈↓∂,␈↓εxy
␈↓ ↓H␈β
i␈↓1␈↓∂O␈↓¬<NAME>␈↓∂;␈↓β␈↓ β↔(U)␈α--␈αoutput␈αoverlay␈αto␈αXGP,␈αwith␈αbasepoint␈αmoved␈αto␈α
absolute␈α
location
␈↓ β↔␈β∞↓␈↓β(␈↓εx␈↓β,␈↓εy␈↓β)␈α--␈αyou␈αcan␈αoutput␈αan␈αoverlay␈α
randomly␈α
anywhere␈α
on␈α
the␈α
page,␈α
or
␈↓ β↔␈β∞∨␈↓βyou␈α⊗can␈α⊗replace␈α⊗the␈α⊗"␈↓∂,␈↓εxy␈↓β"␈α⊗by␈α⊗"␈↓∂;␈↓β"␈α⊗(see␈α⊗syntax,␈α⊗at␈α⊗left␈α⊗of␈α⊗this
␈↓ β↔␈β∞E␈↓βparagraph)␈α⊂to␈α⊂get␈α⊂the␈α∂Gosper-requested␈α∂default␈α∂for␈α∂which␈α∂no␈α∂special
␈↓ β↔␈β∞c␈↓βclaim␈α⊂is␈α⊂made,␈α⊂except␈α⊂to␈α⊂say␈α⊂that␈α⊂the␈α⊂overlay␈α∂is␈α∂placed␈α∂"just␈α∂below"
␈↓ β↔␈β∂↓␈↓βwhere␈α
you␈α
were␈α
writing␈α
plain␈α
text␈αpreviously␈α--␈αBecause␈αtext␈αmust␈αbe
␈↓ β↔␈β∂∨␈↓βpresented␈α⊂in␈α⊂ascending␈α⊂Y-sequence␈α⊂to␈α∂the␈α∂XGP,␈α∂you␈α∂must␈α∂enable␈α∂the
␈↓ π␈↓α 13␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 14␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ β↔␈β↓H␈↓βsimulator␈α⊃(see␈α⊃note␈α⊃2)␈α⊂whenever␈α⊂you␈α⊂place␈α⊂ordinary␈α⊂text␈α⊂below␈α⊂any
␈↓ β↔␈β↓f␈↓βoverlay␈α∪on␈α∪the␈α∪same␈α∪page.␈α&--␈α∪ADDENDA␈α∪1975.JUL-AUG␈α∩--␈α∩At␈α∩the
␈↓ β↔␈βα∧␈↓βinsistance␈α∂of␈α∂Ralph␈α∂Gorin,␈α∂the␈α∂default␈α∂way␈α∂these␈α∂commands␈α∞work␈α∞is␈α∞a
␈↓ β↔␈βα"␈↓βcomplicated␈α∞illogical␈α∞mess␈α∞that␈α∞happened␈α∞to␈α∞be␈α∞implemented␈α∞for␈α∞a␈α∞few
␈↓ β↔␈βα@␈↓βdays␈α∞in␈α∞July.␈α≤If␈α∞you␈α∞have␈α∞the␈α∞'200000␈α∞bit␈α∞on,␈α∞as␈α∞I␈α∞recommend␈α∞for␈α
all
␈↓ β↔␈βα\␈↓βnew␈α⊂files,␈α∂the␈α∂following␈α∂more␈α∂reasonable␈α∂thing␈α∂happens:␈↓␈α≡1␈↓∂O␈↓¬...␈↓β␈α∂always
␈↓ β↔␈βα|␈↓βaffects␈α∞your␈α∞page␈α
printer,␈α
and␈α
register␈↓∂␈α
;␈↓β␈α
if␈α
the␈α
simulator␈α
is␈α
on,␈α
and␈α
is
␈↓ β↔␈ββ~␈↓βsupposed␈α
to␈α
be␈α
used␈α
for␈α
displays␈α
that␈α
occur␈α
in␈α
the␈α
middle␈α
of␈α
text,␈αnot
␈↓ β↔␈ββ6␈↓βpage␈αheaders/footings.␈↓␈α∃1␈↓∂W␈↓¬...␈↓β␈α
never␈α
affects␈α
your␈α
page␈α
printer␈α
or␈α
register
␈↓ β↔␈ββV␈↓∂;␈↓β␈α∂and␈α∂is␈α∂useful␈α∂for␈α∞headings/footings,␈α∞especially␈α∞from␈α∞the␈α∞EVERYPAGE
␈↓ β↔␈ββr␈↓βmacro␈α⊗feature.␈α,The␈α⊗following␈α⊗other␈α⊗differences␈α⊗exist:␈α,the␈↓␈α⊗1␈↓∂W␈↓β...
␈↓ β↔␈β∧∩␈↓βcommand␈α∞will␈α∞force␈α∞the␈α∞overlay␈α∞to␈α∞be␈α∞on␈α∞the␈α∞same␈α∞page,␈α∞even␈α∞if␈α∞it␈α
is
␈↓ β↔␈β∧.␈↓βoutside␈α
the␈α
normal␈α
page␈α
margins,␈α
whereas␈α
the␈↓␈α1␈↓∂O␈↓β...␈αcommand␈αwill␈αwarn
␈↓ β↔␈β∧N␈↓βyou␈α
if␈α
it␈α
is␈α
below␈α
the␈α
bottom␈α
of␈αthe␈αpage,␈αor␈αif␈αVERPAG␈αis␈αon␈α(see␈αthe
␈↓ β↔␈β∧l␈↓βspecial␈α≤features␈α≤section)␈α≤it␈α≤will␈α≤be␈α≤placed␈α≠on␈α≠the␈α≠next␈α≠page
␈↓ β↔␈β¬
␈↓βautomatically.
␈↓ ↓H␈β¬&␈↓1␈↓∂∂␈↓¬<NEW_NAME>␈↓∂←␈↓¬<OLD_NAME>␈↓∂;
␈↓ β↔␈β¬F␈↓β(U␈αJ␈αCR␈αo␈αA)␈α--␈αrename␈αoverlay␈αor␈αmacro␈α
--␈α
if␈α
resultant␈α
name␈α
is␈α
the␈α
null
␈↓ β↔␈β¬d␈↓βstring␈α
then␈α
delete␈α
rather␈α
than␈α
rename␈α
--␈α
It␈α
is␈α
probably␈αa␈αgood␈αidea␈αto
␈↓ β↔␈βεα␈↓βdelete␈αany␈αobsolete␈αoverlays␈αor␈αmacros␈αto␈αsave␈αcore␈α--␈αThe␈αonly␈αother
␈↓ β↔␈βε ␈↓βmajor␈α∩reason␈α∩for␈α⊃using␈α⊃this␈α⊃command␈α⊃now␈α⊃is␈α⊃to␈α⊃temporarily␈α⊃rename
␈↓ β↔␈βε>␈↓βsomething␈α∪so␈α∪that␈α∪it␈α∩can␈α∩be␈α∩temporarily␈α∩redefined,␈α∩then␈α∩delete␈α∩the
␈↓ β↔␈βε\␈↓βtemporary␈α⊂definition␈α⊂and␈α⊂rename␈α⊂the␈α⊂permanent␈α∂definition␈α∂back␈α∂again
␈↓ β↔␈βεz␈↓βwhen␈αdone␈α--␈αThe␈αrename␈αalgorithm␈αcurrently␈αis␈αas␈αfollows:␈α_Do␈αall␈αthe
␈↓ β↔␈βπ_␈↓βfollowing,␈αfirst␈αfor␈αoverlays,␈αthen␈αif␈αthat␈αfalls␈αthru,␈αfor␈αmacros:␈α(1)␈αstart
␈↓ β↔␈βπ6␈↓βat␈αthe␈αtop␈αof␈αlist␈αof␈αdefinitions,␈αi.e.␈αmost␈αrecently-defined␈αitem;␈α(2)␈αif␈αits
␈↓ β↔␈βπT␈↓βname␈α
equals␈↓¬␈α
<OLD>␈↓β␈α
then␈α
clobber␈α
its␈α
retrieval␈α
name␈α
to␈↓¬␈α<NEW>␈↓β␈αand␈αreturn
␈↓ β↔␈βπr␈↓βfrom␈α∞the␈α∞Do␈α∞loop,␈α∞else␈α∞if␈α
its␈α
name␈α
equals␈↓¬␈α
<NEW>␈↓β␈α
then␈α
delete␈α
it␈α
and␈α
fall
␈↓ β↔␈βλ⊂␈↓βthrough␈α∞to␈α∞3,␈α
else␈α
do␈α
nothing␈α
and␈α
fall␈α
through␈α
to␈α
3;␈α
(3)␈α
move␈α
down␈α
to
␈↓ β↔␈βλ.␈↓βnext␈α∩older␈α∩item␈α⊃in␈α⊃the␈α⊃list;␈α⊃(4)␈α⊃go␈α⊃to␈α⊃2.␈α⊃--␈α⊃Thus␈α⊃it␈α⊃is␈α⊃possible␈α⊃that
␈↓ β↔␈βλL␈↓βrenaming␈α⊂the␈α⊂latest␈α⊂version␈α⊂of␈α⊂a␈α∂twice-defined␈α∂overlay␈α∂or␈α∂macro␈α∂will
␈↓ β↔␈βλj␈↓βunmask␈α∞the␈α∞older␈α∞version.␈α≤Don't␈α
rely␈α
on␈α
this,␈α
it␈α
depends␈α
too␈α
much␈α
on
␈↓ β↔␈β λ␈↓βthe␈α
structure␈αof␈αthe␈αtables␈αof␈αdefinitions,␈αand␈αis␈αlikely␈αto␈αchange␈αin␈αthe
␈↓ β↔␈β &␈↓βnear␈α
future␈α
without␈α
warning!
␈↓ ¬
␈β ]␈↓Examples of use of overlays
␈↓ ↓H␈β
␈↓∂$oNUM[1-b+SQRT(b$↑=10;2$⊗-4ac)]$; set up the numerator
␈↓ ↓H␈β
≡␈↓∂$oDEN[12a]$←=0;$→0$; set up the denominator and a useful register
␈↓ ↓H␈β
<␈↓∂$; NOTE -- The algorithm as presented here only works when NUM is wider than DEN
␈↓ ↓H␈β
Z␈↓∂$1NUM;$→X$2NUM;$+X$→A$; set up x offset, compute size of numerator
␈↓ ↓H␈β
x␈↓∂$oBAR[V00A0=2;]$; set up a fraction bar the correct length for numerator
␈↓ ↓H␈β⊗␈↓∂$4NUM;$+=3;$¬0$→Y$3DEN;$+=5;$→y$; compute y offsets
␈↓ ↓H␈β4␈↓∂$1DEN;$→1$2DEN;$¬1$+A$/=2;$→x$; compute x offset
␈↓ ↓H␈βR␈↓∂$&FRAC←NUM,XY&DEN,xy&BAR,00;$; make fraction a composite overlay
␈↓ j␈βW␈↓-b+SQRT(b␈↓#
2␈↓#-4ac)
␈↓ ↓H␈βp␈↓∂$2FRAC;$¬R$→X$4FRAC;$¬;$→Y$OFRAC,XY$; output overlay rightified
␈∧β jα↓|␈↓
W␈βλ␈↓2a
␈↓ α_␈βO␈↓βHere's␈αa␈αuseful␈αhack␈αusing␈αoverlays.␈α_Suppose␈αyou␈αwant␈αto␈αfind␈αout␈αhow␈αwide␈αa␈αstring␈αof␈αtext␈αis
␈↓ ↓H␈βm␈↓βin␈α⊂a␈α⊂particular␈α⊂font␈α⊂(or␈α⊂combination␈α⊂of␈α⊂fonts).␈α≡You␈α∂can␈α∂create␈α∂an␈α∂overlay,␈α∂measure␈α∂its␈α∂parameters
␈↓ ↓H␈β
␈↓β(1,2,3,4),␈αthen␈αdelete␈αit␈αright␈αaway␈αto␈αreclaim␈αthe␈αspace␈αused␈αby␈αthe␈αoverlay␈α
that␈α
you␈α
won't␈α
actually␈α
be
␈↓ ↓H␈β
)␈↓βusing␈α
as␈α
an␈α
overlay.
␈↓ β⊃␈β
`␈↓MACROS (WITHOUT ARGUMENTS) AND REQUIRE SOURCE FILES
␈↓ α_␈β∞β␈↓βAll␈αinput␈αto␈αthe␈αPOX␈αtext␈αprocessor␈αpasses␈αthrough␈αa␈αpre-processor␈αwhich␈αinserts␈αmacro␈αbodies,
␈↓ ↓H␈β∞!␈↓βarguments␈α∞to␈α∞macros,␈α∞and␈α∞requested␈α∞source␈α∞files␈α∞in␈α∞the␈α∞middle␈α∞of␈α∞the␈α∞input␈α∞stream␈α∞according␈α
to␈α
the
␈↓ ↓H␈β∞?␈↓βfollowing␈α
commands:
␈↓ ↓H␈β∞[␈↓1␈↓∂∞␈↓¬<NAME><OPEN><BODY><CLOSE>
␈↓ β↔␈β∞{␈↓β(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
define␈α
a␈α
macro␈α
for␈α
use␈α
later␈α
--␈α
note␈α
that␈α
in␈α
names␈αof
␈↓ β↔␈β∂→␈↓βmacros,␈αjust␈αlike␈αalmost␈αeverywhere␈αelse,␈αlower␈αcase␈αis␈αnot␈αthe␈αsame␈αas
␈↓ β↔␈β∂7␈↓βupper␈α⊂case,␈α⊂thus␈↓∂␈α∂foo␈α∂Foo␈α∂fOO␈α∂FOO␈α∂fOo␈α∂foO␈α∂FoO␈↓β␈α∂and␈↓∂␈α∂FOo␈↓β␈α∂are␈α∂eight
␈↓ π␈↓α 14␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 15␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ β↔␈β↓H␈↓βdifferent␈α∪names␈α∪--␈α∪also,␈α∩the␈↓¬␈α∩<BODY>␈↓␈α∩is␈α∩not␈α∩evaluated␈α∩during␈α∩this
␈↓ β↔␈β↓f␈↓definition␈α⊃phase␈↓β,␈α⊃i.e.␈α"the␈α⊃escape␈α⊃character␈α⊃and␈α⊂anything␈α⊂else␈α⊂may
␈↓ β↔␈βα ␈↓βoccur␈α∞in␈α∞the␈α∞body,␈α
nothing␈α
special␈α
happens␈α
as␈α
the␈α
escape␈α
character␈α
is
␈↓ β↔␈βα'␈↓βcopied␈α∩into␈α∩the␈α∩macro,␈α⊃escape␈α⊃only␈α⊃occurs␈α⊃later␈α⊃when␈α⊃the␈α⊃macro␈α⊃is
␈↓ β↔␈βαE␈↓βactually␈α⊂called,␈α⊂resulting␈α⊂in␈α⊂the␈α∂escape␈α∂character␈α∂and␈α∂everything␈α∂else
␈↓ β↔␈βαc␈↓βgetting␈α
stuffed␈α
into␈α
the␈α
input␈α
stream.
␈↓ ↓H␈βα␈␈↓1␈↓∂!␈↓¬<NAME>␈↓∂;␈↓β␈↓ β↔(U␈αJ␈αCR␈αo␈α
A)␈α
--␈α
call␈α
a␈α
macro,␈α
i.e.␈α
insert␈α
body␈α
from␈α
definition␈α
right␈α
here␈α
in
␈↓ β↔␈ββ∨␈↓βinput␈α∂stream,␈α∂hence␈α∂occurrences␈α∂of␈α∂the␈α∂escape␈α∞character␈α∞in␈α∞the␈α∞body
␈↓ β↔␈ββ=␈↓βwill␈α
cause␈α
things␈α
to␈α
occur␈α
now␈α
(See␈α
note␈α
1␈α
also)
␈↓ ↓H␈ββY␈↓1␈↓∂?␈↓¬<NAME>␈↓∂;␈↓β␈↓ β↔(U␈α∪J␈α∩CR␈α∩o␈α∩A)␈α∩--␈α∩"conditional␈α∩macro"␈α∩--␈α∩same␈α∩syntax␈α∩as␈α∩above␈α∩but
␈↓ β↔␈ββy␈↓βgenerate␈α
nothing␈α
unless␈α
accumulator␈α
is␈α
positive␈α
(See␈α
note␈α
3)
␈↓ ↓H␈β∧3␈↓1␈↓∂@␈↓¬<FILNAM>␈↓∂;␈↓β␈↓ β↔(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
insert␈α
source␈α
file␈α
here␈α
then␈α
return␈α
to␈α
current␈α
file.
␈↓ ↓H␈β∧Q␈↓1␈↓∂α␈↓¬<FILNAM>␈↓∂;␈↓β␈↓ β↔(U)␈α∞--␈α
insert␈α
source␈α
file␈α
here␈α
but␈α
don't␈α
come␈α
back␈α
here␈α
--␈α
the␈α
rest␈α
of
␈↓ β↔␈β∧q␈↓βthis␈α
file,␈α
and␈α
any␈α
files␈α
that␈α
called␈α
it,␈α
are␈α
not␈α
processed.
␈↓ ↓H␈β¬
␈↓1␈↓∂∀␈↓¬<FILNAM>␈↓∂;␈↓¬<LIST OF DESIRED MACRO NAMES>␈↓∂;
␈↓ β↔␈β¬-␈↓β(U␈α
J␈α
CR␈α
o␈α
A)␈α
--␈α
scan␈α
source␈α
file␈α
that␈α
contains␈α
macro␈α
definitions␈α
(see␈α
next
␈↓ β↔␈β¬K␈↓βsection␈αon␈αmacros␈αwith␈αarguments,␈αas␈αwell␈αas␈αthis␈αsection,␈αfor␈αdetails␈αon
␈↓ β↔␈β¬i␈↓βthe␈α∞macro␈α∞definitions␈α∞themselves).␈α≤At␈α∞present,␈α∞the␈α
file␈α
must␈α
contain␈α
a
␈↓ β↔␈βεπ␈↓βTV/E␈α
directory␈α
to␈αavoid␈αa␈αbug␈αin␈αPOX.␈α_Nothing␈αin␈αthe␈αfile␈αis␈αprocessed
␈↓ β↔␈βε%␈↓βunless␈α
it␈α
simultaneously␈α
satisfies␈α
these␈α
conditions:␈α~(1)␈αIt␈αbegins␈αwith␈αa
␈↓ β↔␈βεC␈↓βbrick␈αcharacter␈αin␈αcolumn␈α1␈αof␈αthe␈αfile,␈αi.e.␈α⊗immediately␈αafter␈αa␈αlinefeed;
␈↓ β↔␈βεa␈↓β(2)␈α∞It␈α
has␈α
either␈α
a␈↓∂␈α
∞␈↓β␈α
or␈↓∂␈α
8␈↓β␈α
in␈α
column␈α
2,␈α
i.e.␈α
it␈α
is␈α
a␈α
command␈α
to␈α
define␈α
a
␈↓ β↔␈βε⎇␈↓βmacro;␈α⊂(3)␈α⊂The␈α⊂name␈α⊂of␈α⊂the␈α⊂macro␈α⊂(in␈α⊂the␈↓␈α∂1␈↓∂∞␈↓β␈α∂or␈↓␈α∂1␈↓∂8␈↓β␈α∂command␈α∂being
␈↓ β↔␈βπ≥␈↓βtested)␈α∂is␈α∂a␈α∂member␈α∂of␈↓¬␈α∂<LIST␈α∞OF␈α∞DESIRED␈α∞MACRO␈α∞NAMES>␈↓β␈α∞that␈α∞has␈α∞not␈α∞yet
␈↓ β↔␈βπ9␈↓βbeen␈αused.␈α_In␈αparticular,␈↓␈α1␈↓∂!␈↓¬...␈↓β␈αcommands␈αare␈αnot␈αprocessed,␈αso␈αthat␈αthe
␈↓ β↔␈βπY␈↓βentire␈α⊗library␈α⊗must␈α⊗use␈α⊗the␈α⊗same␈α⊗brick␈α⊗character,␈α⊗and␈α∃this␈α∃brick
␈↓ β↔␈βπu␈↓βcharacter␈α∂must␈α∂be␈α∂set␈α∞up␈α∞before␈α∞issuing␈α∞the␈↓␈α∞1␈↓∂∀␈↓¬...␈↓β␈α∞command.␈α≤Also,␈↓␈α∞1␈↓∂⊂
␈↓ β↔␈βλ∃␈↓βetc.␈α≤commands␈α∞are␈α∞not␈α∞processed,␈α∞so␈α∞that␈α∞all␈α∞bits␈α
needed␈α
for␈α
correct
␈↓ β↔␈βλ3␈↓βloading␈α*of␈α*macros,␈α*namely␈α*VERREM='40,␈α*VERRHT='400␈α)and
␈↓ β↔␈βλO␈↓βVERESC='100000,␈α⊂must␈α⊂be␈α∂in␈α∂the␈α∂proper␈α∂state␈α∂before␈α∂issuing␈α∂the␈↓␈α∂1␈↓∂∀
␈↓ β↔␈βλo␈↓βcommand.␈α"For␈α⊃documentation␈α⊃purposes␈α⊃,␈α⊃any␈α⊂library␈α⊂of␈α⊂POX␈α⊂macros
␈↓ β↔␈β ␈↓βshould␈α
begin␈α
with␈α
a␈α
comment␈α
(or␈α
a␈↓␈α
1␈↓∂⊂␈↓␈α
1␈↓∂⊃␈↓β␈α
command␈α
pair)␈α
that␈αreminds
␈↓ β↔␈β +␈↓βusers␈α
of␈α
the␈α
correct␈α
states␈α
of␈α
these␈α
special-feature␈α
flags.␈α∀--␈α
Example:
␈↓ β7␈β G␈↓1␈↓∂∀REMLIB.POX[1,REM];DATIME,PAGENUMS,SUB,SUP,PAGENUMS;
␈↓ β↔␈β g␈↓βThis␈α⊗loads␈α⊗the␈α⊗second-occurring␈α⊗version␈α⊗of␈α∃PAGENUMS␈α∃on␈α∃top␈α∃of
␈↓ β↔␈β
¬␈↓β(replacing)␈α⊃the␈α⊃first,␈α⊂and␈α⊂loads␈α⊂only␈α⊂the␈α⊂first␈α⊂version␈α⊂of␈α⊂each␈α⊂of␈α⊂the
␈↓ β↔␈β
#␈↓βother␈α
macros.␈α~It␈αis␈αprobably␈αpreferable␈αto␈αuse␈α"fully-cataloged"␈αnames
␈↓ β↔␈β
A␈↓βrather␈α∪than␈α∪have␈α∩several␈α∩different␈α∩macros␈α∩by␈α∩the␈α∩same,␈α∩then␈α∩after
␈↓ β↔␈β
]␈↓βloading␈α⊃to␈α⊃rename␈α⊃each␈α⊂macro␈α⊂(using␈α⊂the␈↓␈α⊂1␈↓∂∂␈↓β␈α⊂command)␈α⊂to␈α⊂a␈α⊂shorter
␈↓ β↔␈β
⎇␈↓βname␈α
that␈α
will␈α
be␈α
used␈α
locally.
␈↓ ↓H␈β→␈↓1␈↓∂β␈↓¬<FILNAM>␈↓∂;␈↓β␈↓ β↔(U␈αJ␈αCR␈αo␈αA)␈α--␈αlookup␈αfile␈αbut␈αdon't␈αread␈αany␈αof␈αit.␈α⊗If␈αthe␈αfile␈αdoes␈αnot
␈↓ β↔␈β9␈↓βexist␈α⊃then␈α⊃type␈α⊃the␈α⊃name␈α⊃of␈α⊂the␈α⊂file␈α⊂on␈α⊂the␈α⊂TTY␈α⊂and␈α⊂increment␈α⊂the
␈↓ β↔␈βW␈↓βcontents␈αof␈αthe␈αac.␈α_Do␈αnot␈αin␈αany␈αcase␈αgenerate␈αan␈αerror␈αor␈αotherwise
␈↓ β↔␈βu␈↓βaffect␈αthe␈αstate␈αof␈αthe␈αtext␈αcompilation␈αin␈αprogress.␈α∃Useful␈α
for␈α
checking
␈↓ β↔␈β∪␈↓βall␈α∞the␈α∞required␈α∞source␈α∞files␈α∞at␈α∞the␈α∞beginning␈α∞of␈α∞a␈α∞long␈α∞compilation␈α∞to
␈↓ β↔␈β1␈↓βsave␈α
time␈α
if␈α
several␈αfiles␈αto␈αbe␈αcalled␈αlater␈αare␈αmissing␈αand␈αneed␈αto␈αbe
␈↓ β↔␈βO␈↓βrestored.␈α≡A␈α∂useful␈α∂technique␈α∂is␈α∂to␈α∂set␈α∂the␈α∂accumulator␈α∞to␈α∞zero,␈α∞then
␈↓ β↔␈βk␈↓βperform␈α∪one␈↓␈α∪1␈↓∂β␈↓β...␈α∪command␈α∪for␈α∪each␈α∪source␈α∪file␈α∪that␈α∪will␈α∪later␈α∪be
␈↓ β↔␈β
␈↓βneeded,␈α∞then␈α
test␈α
the␈α
accumulator␈α
and␈α
if␈α
it␈α
is␈α
now␈α
positive␈α
generate␈α
a
␈↓ β↔␈β
)␈↓βdeliberate␈α∞error␈α∞to␈α∞give␈α∞the␈α∞user␈α∞time␈α∞to␈α∞put␈α∞on␈α∞the␈α∞disk␈α∞all␈α∞the␈α
files
␈↓ β↔␈β
G␈↓βthat␈α∂were␈α∂found␈α∂to␈α∂be␈α∂missing,␈α∂before␈α∂proceeding␈α∂with␈α∂the␈α∂document
␈↓ β↔␈β
e␈↓βcompilation.
␈↓ α_␈β∞β␈↓βIn␈α
the␈α
above,␈↓¬␈α
<FILNAM>␈↓β␈α
is␈α
a␈α
standard␈α
file␈α
name␈↓∂␈α
FILNAM.EXT[P,P]␈↓β␈α
which␈α
must␈α
be␈α
either␈α
a␈α
non-POX
␈↓ ↓H␈β∞!␈↓βfile␈α∞with␈α∞no␈α∞occurrences␈α∞of␈α∞the␈α∞brick␈α∞character␈α∞or␈α∞a␈α∞pox␈α∞file␈α∞that␈α∞does␈α∞not␈α∞begin␈α∞with␈α∞a␈α∞bare␈α∞brick
␈↓ ↓H␈β∞=␈↓βcharacter␈α⊃i.e.␈α⊃it␈α⊃should␈α⊃begin␈α⊂with␈α⊂something␈α⊂like␈↓␈α⊂1␈↓∂|␈↓1␈↓β,␈↓¬␈α⊂<OPEN>␈↓β␈α⊂and␈↓¬␈α⊂<CLOSE>␈↓β␈α⊂are␈α⊂a␈α⊂matching␈α⊂pair␈α⊂of
␈↓ ↓H␈β∞]␈↓βparentheses␈α⊂such␈α⊂as␈↓∂␈α⊂()␈α⊂[]␈α⊂{}␈α⊂⊂⊃␈α∂<>␈↓β,␈α∂in␈α∂which␈α∂case␈α∂occurrences␈α∂of␈α∂these␈α∂characters␈α∂in␈α∂the␈α∂body
␈↓ ↓H␈β∞{␈↓βmust␈α
be␈α
correctly␈α
matched,␈α
or␈α
two␈α
identical␈α
quoting␈α
characters␈α
such␈α
as␈↓∂␈α
""␈α//␈α↓↓␈α⊗⊗␈α||␈α∂∂␈↓β,␈αin␈αwhich
␈↓ ↓H␈β∂→␈↓βcase␈αthe␈αquoting␈αcharacter␈αis␈αnot␈αallowed␈αto␈αoccur␈αin␈αthe␈αbody␈αat␈αall␈α(the␈αcomplete␈αcurrent␈αlist␈αof␈αlegal
␈↓ ↓H␈β∂7␈↓βnesting␈α
and␈α
quoting␈α
characters␈α
may␈α
be␈α
found␈α
by␈α
examining␈α
the␈α
source␈α
for␈α
POX).
␈↓ π␈↓α 15␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 16␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ α_␈β↓H␈↓β<UC>␈αare␈αuncoupling␈αflags␈α(in␈↓␈α1␈↓∂@␈↓β␈αcommand,␈αafter␈αfile␈αname,␈αbefore␈α";"),␈αcurrently␈αunimplemented.
␈↓ ↓H␈β↓h␈↓βTheir␈αpurpose␈αwill␈αbe␈αto␈αsave␈αvarious␈αinternal␈αstates␈αbefore␈αbeginning␈αto␈αinput␈αan␈αinserted␈αsource␈αfile,
␈↓ ↓H␈βαε␈↓βthen␈α∃to␈α∃restore␈α∃those␈α∃states␈α∃before␈α∃returning␈α∃so␈α∃that␈α∃the␈α∃inserted␈α∃file␈α∃won't␈α∀pass␈α∀undesired
␈↓ ↓H␈βα$␈↓βside-effects␈αback␈αto␈αthe␈αmain␈αprogram.␈α∃In␈α
the␈α
absence␈α
of␈α
any␈α
<UC>␈α
flags,␈α
any␈α
macro-definitions␈α
or␈α
font
␈↓ ↓H␈βαB␈↓βcompilations␈αetc.␈αdone␈αin␈αthe␈αinserted␈α
source␈α
file␈α
will␈α
stay␈α
in␈α
effect␈α
after␈α
returning␈α
to␈α
the␈α
current␈α
file,␈α
a
␈↓ ↓H␈βα`␈↓βsometimes␈α
undesirable␈α
effect.
␈↓ ∧>␈ββ↔␈↓Examples of macros without arguments
␈↓ ↓H␈ββ:␈↓∂$∞SUPERSCRIPT[$F1$∩$F2]$∞NORMAL[$F1$⊗]$;
␈↓ ↓H␈ββX␈↓∂$!NORMAL;Y = X$!SUPERSCRIPT;i+1$!NORMAL;-1
␈↓ ↓H␈ββg␈↓Y = X␈↓α␈↓#⊂i+1␈↓-1
␈↓ ↓H␈β∧3␈↓∂$∞SOJGxFOO[$F2(FOO)$←N$-=1;$→N$?SOJGxFOO;]$; set up a count-down-to-zero loop
␈↓ ↓H␈β∧Q␈↓∂$; note that the above macro will recursively call itself N levels deep
␈↓ ↓H␈β∧o␈↓∂$←=15;$→N$!SOJGxFOO;$; call the loop with N=15 to generate 15 copies of (FOO)
␈↓ ↓H␈β¬+␈↓α(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)
␈↓ β~␈βε␈↓MACROS WITH ARGUMENTS -- EVALUATED LIKE LISP EXPR'S
␈↓ α_␈βε#␈↓βMany␈α
of␈α
the␈αcommands␈αdescribed␈αabove␈αare␈αtoo␈αelementary␈αto␈αbe␈αless␈αthan␈αtedious␈αin␈αpractice,
␈↓ ↓H␈βεA␈↓βeven␈α⊂with␈α⊂macros␈α∂used␈α∂to␈α∂abbreviate␈α∂long␈α∂sequences␈α∂of␈α∂commands.␈α≡Complicated␈α∂things␈α∂are␈α∂almost
␈↓ ↓H␈βε←␈↓βunbearable,␈α∞for␈α∞example␈α∞to␈α∞create␈α∞a␈α∞superscript␈α∞above␈α∞a␈α∞subscript␈α
as␈α
in␈α
"x-sub-i-to-the-nth-power"
␈↓ ↓H␈βε⎇␈↓βwould␈α
require␈α
quite␈α
a␈α
mess␈α
of␈α
almost␈α
unreadable␈α
code,␈α
such␈α
as:
␈↓ αH␈βπ→␈↓1␈↓∂F1␈↓1␈↓∂⊗x␈↓1␈↓∂←.␈↓1␈↓∂→0␈↓1␈↓∂↑=15;␈↓1␈↓∂F2n␈↓1␈↓∂←.␈↓1␈↓∂→1␈↓1␈↓∂←0␈↓1␈↓∂→.␈↓1␈↓∂↓=12;i␈↓1␈↓∂←.␈↓1␈↓∂~1␈↓1␈↓∂→.␈↓1␈↓∂⊗␈↓1␈↓∂F1
␈↓ ↓H␈βπ9␈↓βwhere␈αyou␈αmay␈αhave␈αtrouble␈αlocating␈αthe␈αterms␈α"␈↓∂x␈↓β",␈α"␈↓∂n␈↓β"␈αand␈α"␈↓∂i␈↓β"␈αamong␈αall␈αthe␈α
overhead.␈α∀Using␈α
macros
␈↓ ↓H␈βπW␈↓βwithout␈α⊃arguments␈α⊃may␈α⊃result␈α⊃in␈α⊃some␈α⊃increase␈α⊃in␈α⊃readability.␈α!This␈α⊂can␈α⊂be␈α⊂done␈α⊂in␈α⊂at␈α⊂least␈α⊂two
␈↓ ↓H␈βπu␈↓βreasonable␈α
ways,␈α
resulting␈α
in:
␈↓ αH␈βλ⊃␈↓1␈↓∂!txt;x␈↓1␈↓∂!savecol;␈↓1␈↓∂!sub;i␈↓1␈↓∂!swapcol;␈↓1␈↓∂!sup;n␈↓1␈↓∂!maxcol;
␈↓ ↓H␈βλ/␈↓βor␈↓␈↓ αH1␈↓∂∞main[x]␈↓1␈↓∂∞sub[i]␈↓1␈↓∂∞sup[n]␈↓1␈↓∂!sbp;
␈↓ ↓H␈βλO␈↓βMacros␈α∞with␈α∞arguments␈α∞make␈α∞things␈α∞easier␈α∞and␈α∞much␈α∞more␈α∞readable.␈α≤After␈α∞once␈α
defining␈α
the␈α
macro
␈↓ ↓H␈βλm␈↓∂sbp(main,sub,sup)␈↓β␈α~(see␈α~the␈α~examples␈α→later␈α→in␈α→this␈α→section␈α→for␈α→details)␈α→we␈α→can␈α→generate
␈↓ ↓H␈β ␈↓βx-sub-i-to-the-nth-power␈α
by␈α
the␈α
simple:
␈↓ αH␈β '␈↓1␈↓∂!sbp(x,i,n);
␈↓ ↓H␈β G␈↓βThe␈α
pseudo-language␈α
we␈α
thus␈αbuild␈αup␈αout␈αof␈αmacros-with-arguments␈αpartially␈αobviates␈αthe␈αnecessity
␈↓ ↓H␈β e␈↓βof␈α
fixing␈α
the␈α
"bad"␈α
syntax␈α
that␈α
POX␈α
has.
␈↓ ∧{␈β
!␈↓βDEFINE MACRO -- VERREM SYNTAX
␈↓ β∞␈β
?␈↓β(THIS AND FOLLOWING SECTIONS WERE REWRITTEN 1975.NOV.27-DEC.05)
␈↓ ↓H␈β
[␈↓1␈↓∂8␈↓¬<NAME>␈↓∂(␈↓¬<ARGNAMES>␈↓∂)␈↓¬<OPEN><BODY><CLOSE>
␈↓ α?␈β
{␈↓β(U␈α⊂J␈α⊂CR␈α∂o␈α∂A)␈α∂--␈α∂Define␈α∂a␈α∂macro␈α∂with␈α∂arguments␈α∂(up␈α∂to␈↓∂␈α∂'30␈↓β␈α∂arguments␈α∂currently
␈↓ α?␈β→␈↓βallowed).␈α≠The␈α
VERREM␈α
special-feature␈α
bit␈α
must␈α
be␈α
on␈α
at␈α
the␈α
time␈α
this␈α
command␈α
is
␈↓ α?␈β7␈↓βscanned.␈α∀See␈α
details␈α
of␈α
syntax␈α
below.
␈↓ α?␈βU␈↓¬<ARGNAMES>␈↓β␈α--␈αUp␈αto␈↓∂␈α'30␈↓β␈αalphanumeric␈αstrings␈αseparated␈αby␈αcommas.␈α⊗(Note␈αthat␈αthe
␈↓ α?␈βs␈↓βcharacters␈α
surrounding␈↓¬␈α
<ARGNAMES>␈↓β␈α
must␈α
be␈α
parenthesis.)
␈↓ α?␈β⊃␈↓¬<BODY>␈↓β␈α
--␈α
An␈α
arbitrary␈α
string␈α
of␈α
text␈α
to␈α
be␈α
copied␈α
verbatim␈α
into␈α
the␈α"body"␈αof␈αthe
␈↓ α?␈β/␈↓βmacro.␈α⊗This␈αtext␈αwill␈αbe␈αspliced␈αinto␈αthe␈αinput␈αstream␈α
later␈α
when␈α
the␈α
macro␈α
is␈α
called
␈↓ α?␈βK␈↓β(see␈α∀the␈↓␈α∀1␈↓∂!␈↓β...␈α(command),␈α∀just␈α∀like␈α∀macros␈α∀without␈α∪arguments.␈α&The␈α∪following
␈↓ α?␈βk␈↓βexceptions␈α
to␈α
the␈α
"verbatim"␈α
copying␈α
exist:
␈↓ α?␈β
␈↓¬<OPEN>␈↓β␈α∞and␈↓¬␈α∞<CLOSE>␈↓β␈α∞must␈α∞be␈α∞properly-nested␈α
if␈α
they␈α
appear␈α
at␈α
all␈α
inside␈α
the␈α
body.
␈↓ α?␈β
'␈↓βPOX␈α∞counts␈α∞how␈α∞many␈α∞levels␈α∞deep␈α
you␈α
are,␈α
and␈α
only␈α
terminates␈α
parsing␈α
when␈α
the
␈↓ α?␈β
E␈↓βdepth␈α
reaches␈α
zero,␈α
i.e.␈αwhen␈αthe␈↓¬␈α<CLOSE>␈↓β␈αappears␈αthat␈αmatches␈αthe␈αoriginal␈↓¬␈α<OPEN>␈↓β.
␈↓ α?␈β
c␈↓βOf␈αcourse,␈αif␈αyou␈αuse␈αa␈αquoting␈αpair␈αto␈αdelimit␈αthe␈αbody,␈αthe␈αquoting␈αcharacters␈αmay
␈↓ α?␈β∞↓␈↓βnot␈α
appear␈α
at␈α
all␈α
in␈α
the␈α
body.
␈↓ α?␈β∞≥␈↓1␈↓β␈α⊂(i.e.␈α⊂whatever␈α⊂your␈α⊂brick␈α⊂character␈α⊂is␈α⊂at␈α⊂the␈α⊂time␈α∂you␈α∂define␈α∂the␈α∂macro)␈α∂gets
␈↓ α?␈β∞=␈↓βconverted␈α
into␈α
a␈↓¬␈α
<BRICK>␈↓β␈α
token␈αif␈αthe␈αVERESC␈αspecial-feature␈αbit␈αis␈αon,␈αotherwise␈αit
␈↓ α?␈β∞[␈↓βgets␈αcopied␈αverbatim␈αtoo.␈α⊗When␈αthe␈↓¬␈α<BRICK>␈↓β␈αtoken␈αis␈αseen␈αlater␈αwhen␈α
expanding␈α
the
␈↓ α?␈β∞w␈↓βmacro,␈αit␈αgets␈αconverted␈αto␈αthe␈↓␈α1␈↓β␈α
character,␈α
which␈α
will␈α
be␈α
a␈α
different␈α
character␈α
from
␈↓ α?␈β∂∃␈↓βthe␈α⊃original␈α⊃if␈α⊂you␈α⊂have␈α⊂used␈α⊂the␈↓␈α⊂1␈↓∂|␈↓¬<ch>␈↓β␈α⊂to␈α⊂redefine␈α⊂the␈α⊂brick␈α⊂character␈α⊂in␈α⊂the
␈↓ α?␈β∂5␈↓βmeantime.␈α≤(Without␈α∞the␈α∞VERESC␈α∞feature,␈α∞it␈α∞would␈α∞be␈α∞the␈α∞same␈α∞ASCII␈α∞character␈α∞as
␈↓ π␈↓α 16␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 17␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ α?␈β↓H␈↓βbefore,␈α
even␈α
if␈α
it␈α
was␈α
no␈α
longer␈α
the␈α
brick␈α
character.)
␈↓ α?␈β↓f␈↓∂⊗$⊗␈↓β␈α∂gets␈α∂converted␈α∂into␈α∞the␈↓¬␈α∞<BRICK>␈↓β␈α∞token␈α∞regardless␈α∞of␈α∞the␈α∞state␈α∞of␈α∞the␈α∞VERESC
␈↓ α?␈βα∧␈↓βflag.
␈↓ α?␈βα"␈↓∂⊗⊗␈↓β␈α
gets␈α
converted␈α
into␈α
a␈α
␈↓&single␈↓)αβ␈↓∂␈α
⊗␈↓β␈α
character.
␈↓ α?␈βα@␈↓∂⊗␈↓¬<ARGNAME>␈↓∂⊗␈↓β␈α∩(one␈α∩of␈α∩the␈α∩argument-names␈α∩you␈α∩specified␈α∩in␈α∩the␈↓¬␈α∩<ARGNAMES>␈↓β)␈α∩gets
␈↓ α?␈βα↑␈↓βconverted␈α∞into␈α∞the␈α∞appropriate␈↓¬␈α∞<ARGn>␈↓β␈α∞token.␈α~Later␈α
when␈α
the␈α
macro␈α
is␈α
called,␈α
this
␈↓ α?␈βαo␈↓βtoken␈α
is␈α
replaced␈α
by␈α
the␈α
n␈↓#
th␈↓#␈α
actual-argument␈α
string.
␈↓ α?␈ββ∩␈↓∂⊗@␈↓εq␈↓∂⊗␈↓β␈α∩(not␈α∩supported,␈α∩and␈α⊃likely␈α⊃to␈α⊃be␈α⊃purged␈α⊃or␈α⊃differently-implemented␈α⊃soon)
␈↓ α?␈ββ8␈↓βperforms␈αthe␈αregister-argument␈αlookup␈α
and␈α
uses␈α
the␈α
value␈α
thus␈α
obtained␈α
(must␈α
be␈α
in
␈↓ α?␈ββV␈↓βthe␈α
range␈↓∂␈α
0␈↓β␈α
to␈↓∂␈α
'30␈↓β)␈α
to␈α
generate␈α
the␈α
corresponding␈↓¬␈α
<ARGn>␈↓β␈α
token.
␈↓ α?␈ββt␈↓∂⊗␈↓β...␈↓∂⊗␈↓β␈α∪--␈α∪anything␈α∪else␈α∩after␈α∩a␈↓∂␈α∩⊗␈↓β␈α∩character␈α∩is␈α∩illegal.␈α$An␈α∩error␈α∩will␈α∩usually␈α∩be
␈↓ α?␈β∧∩␈↓βgenerated␈α
before␈α
the␈α
second␈↓∂␈α
⊗␈↓β␈α
is␈α
seen␈α
(if␈α
there␈α
is␈α
one).
␈↓ ∧j␈β∧N␈↓βCALLING MACROS -- LIKE LISP EXPR'S
␈↓ ↓H␈β∧j␈↓1␈↓∂!␈↓¬<NAME><ARGBATCH><ARGBATCH>␈↓β...␈↓¬<ARGBATCH>␈↓∂;
␈↓ ↓H␈β¬
␈↓βwhere each ␈↓¬<ARGBATCH>␈↓β is of the form ␈↓¬<OPEN><ACTUAL ARGS><CLOSE>
␈↓ ↓H␈β¬(␈↓βand each ␈↓¬<ACTUAL ARGS>␈↓β consists of arguments separated by commas, as described below.
␈↓ α?␈β¬F␈↓β(U␈α⊂J␈α⊂CR␈α⊂o␈α⊂A)␈α⊂--␈α⊂Call␈α⊂a␈α⊂macro␈α⊂with␈α⊂arguments.␈α Each␈↓¬␈α⊂<ARGBATCH>␈↓β␈α⊂unit␈α∂may␈α∂use␈α∂a
␈↓ α?␈β¬d␈↓βdifferent␈↓¬␈α<OPEN>␈α<CLOSE>␈↓β␈αpair␈α(when␈αthe␈↓¬␈α<OPEN>␈↓β␈αis␈αseen,␈αPOX␈αlooks␈αit␈αup␈αin␈αa␈αtable␈αto
␈↓ α?␈βεα␈↓βdetermine␈αwhich␈↓¬␈α
<CLOSE>␈↓β␈α
to␈α
look␈α
for)␈α
selected␈α
from␈α
the␈α
legal␈α
nesting␈α
or␈α
quoting␈α
pairs.
␈↓ α?␈βε ␈↓βAs␈α
many␈α
arguments␈α
as␈α
desired,␈α
separated␈α
by␈α
commas,␈α
may␈α
appear␈α
in␈α
a␈α
single␈↓¬␈α
<ACTUAL
␈↓ α?␈βε>␈↓¬ARGS>␈↓β␈αitem,␈αand␈αas␈αmany␈↓¬␈α<ARGBATCH>␈↓β␈αunits␈αmay␈α
appear␈α
altogether␈α
(as␈α
indicated␈α
by␈α
the
␈↓ α?␈βε\␈↓β"..."␈αin␈αthe␈αabove␈αsyntax␈αspecification),␈αproviding␈αthat␈αthe␈αtotal␈αnumber␈αof␈αarguments
␈↓ α?␈βεz␈↓βdoes␈αnot␈αexceed␈↓∂␈α'30␈↓β.␈α_The␈αmost␈αcommon␈αway␈αof␈αdoing␈αit,␈αand␈αthe␈αeasiest,␈αis␈αto␈αuse
␈↓ α?␈βπ_␈↓βordinary␈α
parenthesis,␈α
with␈α
all␈α
arguments␈α
in␈α
a␈α
single␈↓¬␈α
<ARGBATCH>␈↓β␈α
unit,␈α
for␈α
example:
␈↓ βU␈βπ4␈↓1␈↓∂!FOO(First argument,Second argument,Third arg);
␈↓ α?␈βπT␈↓βHowever,␈αif␈αany␈αargument␈αcontains␈αor␈αgenerates␈αa␈αcomma,␈αit␈αis␈αnecessary␈αto␈αturn␈αon
␈↓ α?␈βπr␈↓βthe␈αVE1LES␈αspecial-feature␈αbit␈α(to␈αprevent␈αcomma␈αfrom␈αdelimiting␈αarguments)␈αand␈αto
␈↓ α?␈βλ⊂␈↓βenclose␈α
each␈α
argument␈α
in␈α
a␈α
separate␈α
set␈α
of␈α
nesting␈α
characters,␈α
such␈α
as:
␈↓ α⎇␈βλ,␈↓1␈↓∂!LESHACK(First argument with ",")(Second argument)(Third);
␈↓ α?␈βλL␈↓βAlso,␈α⊃if␈α⊃parenthesis␈α⊃occur␈α⊂inside␈α⊂arguments,␈α⊂it␈α⊂is␈α⊂usually␈α⊂necessary␈α⊂to␈α⊂use␈α⊂some
␈↓ α?␈βλj␈↓βother␈α
nesting␈α
or␈α
quoting␈α
pair,␈α
for␈α
example:
␈↓ β∃␈β ε␈↓1␈↓∂!MESS<This contains (, [, ", and { inside an argument>;
␈↓ α?␈β &␈↓βA␈α$detailed␈α$description␈α$of␈α$the␈α$algorithm␈α$that␈α#is␈α#used␈α#to␈α#scan␈α#the
␈↓ α?␈β D␈↓βmacro-with-arguments␈α
syntax,␈α
build␈α
up␈α
arguments,␈α
bind␈α
them␈α
to␈α
the␈↓¬␈α
<ARGn>␈↓β␈α
table␈α
that
␈↓ α?␈β b␈↓βis␈αpassed␈αto␈αthe␈αmacro-body␈αexpander,␈αand␈αthe␈αalgorithm␈αthe␈αmacro-body␈αexpander
␈↓ α?␈β
␈↓βuses␈α∂to␈α∂splice␈α∂the␈α∂macro␈α∂body␈α∂and␈α∂the␈α∂arguments␈α∞into␈α∞the␈α∞input␈α∞stream,␈α∞is␈α∞given
␈↓ α?␈β
≡␈↓βlater.␈α⊗If␈αyou␈αplan␈αto␈αdo␈αanything␈αcomplicated␈αwith␈αmacros,␈αyou␈αwill␈α
need␈α
to␈α
read␈α
the
␈↓ α?␈β
<␈↓βalgorithm-description␈α∩and␈α∩understand␈α⊃it␈α⊃in␈α⊃order␈α⊃to␈α⊃predict␈α⊃what␈α⊃happens␈α⊃when
␈↓ α?␈β
X␈↓βvarious␈α
special␈α
characters␈α
(␈↓¬<COMMA>␈α
<OPEN>␈α
<CLOSE>␈↓β␈αand␈↓␈α1␈↓β)␈αare␈αgenerated␈αinside␈αthe
␈↓ α?␈β
x␈↓βscanning-of-arguments␈α
process.␈α→Note␈αthat␈αit␈αis␈αnot␈αlegal␈αto␈αgenerate␈αan␈αASCII␈α'177
␈↓ α?␈β⊗␈↓βor␈α∃'0␈α∃character␈α∃while␈α∃preparing␈α∃an␈α∃argument,␈α∃thus␈α∃many␈α∃commands␈α∃(such␈α∃as
␈↓ α?␈β4␈↓βfont-select)␈α∞are␈α∞illegal␈α∞inside␈α∞arguments.␈α≤By␈α∞quoting␈α∞the␈α∞characters␈α∞that␈α∞make␈α∞up
␈↓ α?␈βR␈↓βthe␈α∀command␈α∀(see␈α∪below),␈α∪however,␈α∪the␈α∪evaluation␈α∪of␈α∪such␈α∪commands␈α∪may␈α∪be
␈↓ α?␈βp␈↓βpostponed␈αuntil␈αafter␈αthe␈αexpanded␈αmacro␈αhas␈αbeen␈αgenerated␈αand␈αpatched␈αinto␈αthe
␈↓ α?␈β∞␈↓βinput␈α∪stream,␈α∩at␈α∩a␈α∩time␈α∩when␈α∩such␈α∩commands␈α∩are␈α∩legal.␈α$Be␈α∩aware␈α∩that␈α∩other
␈↓ α?␈β*␈↓βcommands␈α
such␈α
as␈↓␈α
1␈↓∂A␈↓β...␈α
have␈αa␈αslightly␈αdifferent␈αeffect␈αdepending␈αon␈αwhether␈αthey
␈↓ α?␈βJ␈↓βare␈αevaluated␈αwhile␈αscanning␈αan␈αargument␈αor␈αwhile␈αgenerating␈αoutput␈αtext␈αlater,␈α
and
␈↓ α?␈βh␈↓βthat␈αcommands␈αthat␈αfetch␈αcontents␈αof␈αregisters␈αetc.␈αwill␈αgive␈αdifferent␈αeffects␈αif␈αthat
␈↓ α?␈β
ε␈↓βdata␈α
changes␈α
after␈α
argument-scanning-binding␈α
time.
␈↓ ↓H␈β
"␈↓1␈↓∂?␈↓¬<NAME><OPEN><ACTUAL ARGS><CLOSE><OPEN><A.A.><CLOSE>...␈↓∂;
␈↓ α?␈β
B␈↓β(U␈αJ␈αCR␈αo␈αA)␈α--␈αConditionally␈αcall␈αa␈αmacro␈αwith␈αarguments.␈α_At␈αthe␈αbeginning␈αof␈αthe
␈↓ α?␈β
↑␈↓βscan,␈αjust␈αafter␈αthe␈α"␈↓1␈↓∂?␈↓β"␈αhas␈αbeen␈αseen,␈αa␈αflag␈αis␈αset␈αaccording␈αto␈αwhether␈αthe␈αac␈α
␈↓&is␈↓)αβ
␈↓ α?␈β
|␈↓βpositive␈α
or␈α
not.␈α~Then␈α
all␈αargument␈αscanning␈αetc.␈αis␈αperformed␈αjust␈αlike␈αin␈αthe␈α"␈↓1␈↓∂!␈↓β"
␈↓ α?␈β∞≤␈↓βcommand␈α⊃(indeed,␈α⊃the␈α⊃same␈α⊃piece␈α⊃of␈α⊃code␈α⊃is␈α⊃executed␈α⊃in␈α⊂POX).␈α When␈α⊂the␈α⊂final
␈↓ α?␈β∞:␈↓βsemicolon␈α∞is␈α∞seen,␈α∞the␈α∞flag␈α∞is␈α∞tested␈α∞to␈α∞determine␈α
whether␈α
the␈α
input-stream␈α
patch
␈↓ α?␈β∞X␈↓βwill␈α∩be␈α∩done␈α∩(if␈α∩the␈α∩ac␈α∩␈↓&was␈↓)αβ␈α∩positive)␈α∩or␈α∩the␈α∩patch␈α∩not␈α∩done␈α∩and␈α⊃the␈α⊃table␈α⊃of
␈↓ α?␈β∞v␈↓βarguments␈α
flushed␈α
(if␈α
the␈α
ac␈α
␈↓&was␈↓)αβ␈α
zero␈α
or␈α
negative).
␈↓ π␈↓α 17␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 18␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ β>␈β↓H␈↓βDETAILED DESCRIPTION OF ALGORITHM FOR PROCESSING MACROS
␈↓ α_␈β↓d␈↓β(1)␈αIf␈αthe␈αcommand␈αwas␈↓␈α1␈↓∂?␈↓β␈αthen␈αthe␈αsplice-enabling␈αflag␈αis␈αset␈αaccording␈αto␈αthe␈αcontents␈αof␈αthe
␈↓ ↓H␈βαα␈↓βac,␈αbut␈αif␈αthe␈αcommand␈αis␈↓␈α1␈↓∂!␈↓β␈αthen␈αthe␈αflag␈αis␈αset␈αto␈αTRUE␈αregardless.␈α⊗Text␈αis␈αscanned␈αuntil␈αa␈αdelimiter
␈↓ ↓H␈βα"␈↓βis␈α∞seen,␈α∞and␈α∞the␈↓¬␈α∞<NAME>␈↓β␈α∞thus␈α∞scaned␈α∞is␈α∞looked␈α∞up␈α∞in␈α∞the␈α∞table␈α∞of␈α∞existing␈α∞macros.␈α≤The␈α∞body␈α∞of␈α∞the
␈↓ ↓H␈βα@␈↓βmacro␈αis␈αsaved␈αto␈αbe␈αused␈αlater,␈αand␈αan␈αempty␈αlist␈αof␈αarguments␈αis␈αset␈αup.␈α⊗The␈αdelimiter␈αat␈αthe␈αend␈αof
␈↓ ↓H␈βα↑␈↓βthe␈↓¬␈α
<NAME>␈↓β,␈α
which␈α
should␈α
be␈α
either␈α
a␈α
semicolon␈α
or␈α
an␈α
open-nesting␈α
or␈α
quoting␈α
character,␈α
is␈α
now␈α
tested:
␈↓ α_␈βα|␈↓β(2)␈α∞If␈α∞that␈α∞character␈α∞was␈α∞a␈α
semicolon,␈α
then␈α
go␈α
to␈α
(5);␈α
If␈α
it␈α
was␈α
a␈α
legal␈α
open-nesting␈α
or␈α
quoting
␈↓ ↓H␈ββ~␈↓βcharacter,␈αthen␈αlook␈α
up␈α
the␈α
corresponding␈α
close-nesting␈α
or␈α
quoting␈α
character␈α
in␈α
the␈α
nesting␈α
table␈α
inside
␈↓ ↓H␈ββ8␈↓βPOX␈αand␈αsave␈αit␈αfor␈αlater␈αreference,␈αthen␈αset␈αnesting␈αdepth␈αto␈αzero␈αand␈αenter␈αa␈αscanner␈αin␈α
which␈α
input
␈↓ ↓H␈ββV␈↓βcontinues␈αto␈αbe␈αread␈αand␈αbrick␈αcommands␈αcontinue␈αto␈αbe␈αexecuted␈α
as␈α
they␈α
occur,␈α
but␈α
output␈α
is␈α
fed␈α
into
␈↓ ↓H␈ββt␈↓βan␈α⊃argument-body␈α⊃that␈α⊃is␈α⊃being␈α⊃constructed.␈α"Paragraph␈α⊃(3)␈α⊃describes␈α⊃this␈α⊃scanning␈α⊃process,␈α⊃and
␈↓ ↓H␈β∧∩␈↓βparagraph␈α
(4)␈α
describes␈α
what␈α
happens␈α
when␈α
brick␈α
commands␈α
are␈α
seen␈α
during␈α
the␈α
scanning.
␈↓ α_␈β∧0␈↓β(3)␈α
Read␈α
a␈α
character.
␈↓ α_␈β∧N␈↓βIf␈αit␈αis␈αthe␈αclose-nesting␈αor␈αquoting␈αcharacter␈αthen␈αwe␈αdecrement␈αnesting␈αdepth,␈αthen␈αdepending
␈↓ ↓H␈β∧l␈↓βon␈α
its␈α
resultant␈α
value␈α
do␈α
the␈αfollowing:␈α_DEPTH<0,␈αclose␈αoff␈αthis␈αargument-body,␈αput␈αit␈αin␈αthe␈αtable␈αof
␈↓ ↓H␈β¬
␈↓βarguments,␈α∞read␈α
one␈α
more␈α
character,␈α
and␈α
go␈α
to␈α
(2)␈α
[THIS␈α
IS␈α
THE␈α
ONLY␈α
EXIT␈α
FROM␈α
THIS␈α
(3)␈α
SCANNING
␈↓ ↓H␈β¬(␈↓βLOOP];␈α⊃DEPTH=0,␈α⊃do␈α⊃nothing,␈α⊃continue␈α⊃(3)␈α⊃scanning;␈α⊃DEPTH>0,␈α⊃emit␈α⊃the␈α⊃character␈α⊃(close-nesting␈α⊃or
␈↓ ↓H␈β¬F␈↓βquoting)␈α
into␈α
the␈α
argument-body␈α
and␈α
continue␈α
(3)␈α
scanning.
␈↓ α_␈β¬d␈↓βElse␈α∂if␈α∂it␈α∂is␈α∂the␈α∂open-nesting␈α∂character␈α∂then␈α∂(assuming␈α∂VERRHT␈α∂is␈α∂enabled)␈α∂increment␈α∞nesting
␈↓ ↓H␈βεα␈↓βdepth,␈α∂then␈α∂depending␈α∂on␈α∂the␈α∂result␈α∂do␈α∂the␈α∂following:␈α≡DEPTH=1,␈α∂do␈α∞nothing,␈α∞continue␈α∞(3)␈α∞scanning;
␈↓ ↓H␈βε ␈↓βDEPTH>1,␈α
emit␈α
the␈α
character␈α
(open-nesting)␈α
into␈α
the␈α
argument-body,␈α
continue␈α
(3)␈α
scanning.
␈↓ α_␈βε<␈↓βElse␈αif␈αDEPTH>0␈αthen␈αemit␈αthe␈αcharacter␈αinto␈αthe␈αargument-body␈α
(thus␈↓␈α
1␈↓β␈α
and␈↓¬␈α
<COMMA>␈↓β␈α
are␈α
quoted
␈↓ ↓H␈βε\␈↓βrather␈α
than␈α
being␈α
acted-upon␈α
as␈α
below)␈α
and␈α
continue␈α
(3)␈α
scanning.
␈↓ α_␈βεz␈↓βElse␈αif␈αthe␈αcharacter␈αis␈αa␈αcomma␈αthen␈αdo␈αthe␈αfollowing:␈α∀If␈α
VE1LES␈α
is␈α
on␈α
then␈α
emit␈α
the␈α
comma␈α
into
␈↓ ↓H␈βπ_␈↓βthe␈α
argument-body␈αand␈αcontinue␈α(3)␈αscaning;␈αelse␈αclose␈αoff␈αthe␈αargument-body␈αand␈αput␈αit␈αin␈αthe␈αtable
␈↓ ↓H␈βπ6␈↓βof␈α
arguments,␈α
then␈α
open␈α
a␈α
new␈α
argument-body␈α
and␈α
continue␈α
(3)␈α
scanning.
␈↓ α_␈βπT␈↓βElse␈α
if␈α
it␈α
is␈αthe␈αbrick␈αcharacter␈αthen␈αparse␈αthe␈αbrick-command␈αas␈αdescribed␈αin␈α(4),␈αand␈αcontinue
␈↓ ↓H␈βπr␈↓β(3)␈α
scanning␈α
when␈α
done.
␈↓ α_␈βλ⊂␈↓β(4)␈α∀Brick-commands␈α∀are␈α∀parsed␈α∀in␈α∪the␈α∪usual␈α∪way,␈α∪except␈α∪that␈α∪certain␈α∪commands␈α∪(such␈α∪as
␈↓ ↓H␈βλ.␈↓βfont-select)␈αare␈αnot␈αimplemented␈αbecause␈αthey␈αemit␈αrubouts␈αwhich␈αare␈αnot␈αpermitted␈α
in␈α
arguments,␈α
and
␈↓ ↓H␈βλL␈↓βa␈α⊃few␈α⊃other␈α⊃commands␈α⊃that␈α⊃do␈α⊃strange␈α⊃things␈α⊂are␈α⊂also␈α⊂not␈α⊂implemented.␈α When␈α⊂considering␈α⊂brick
␈↓ ↓H␈βλj␈↓βcommands␈α⊂that␈α⊂generate␈α⊂text,␈α⊂it␈α⊂is␈α⊂important␈α⊂to␈α⊂distinguish␈α⊂between␈α⊂those␈α∂commands␈α∂which␈α∂emit␈α∂a
␈↓ ↓H␈β ε␈↓βcharacter␈α∞into␈α∞the␈α∞output␈α∞stream␈α∞(the␈α∞argument␈α∞body)␈α∞directly␈α∞(these␈α∞commands␈α∞are␈↓␈α
1␈↓∂"␈↓¬<CH>␈↓␈α
11␈↓β␈α
and
␈↓ ↓H␈β ≡␈↓1␈↓∂A␈↓εq␈↓β)␈αand␈αthose␈αwhich␈αsplice␈αtext␈αinto␈αthe␈αinput␈αstream␈α(these␈αcommands␈αare␈↓␈α1␈↓∂D␈↓εq␈↓␈α1␈↓∂!␈↓β...␈↓␈α1␈↓∂?␈↓β...␈↓␈α1␈↓∂@␈↓β...␈α⊗and
␈↓ ↓H␈β B␈↓1␈↓∂α␈↓β...).␈α~In␈α
the␈α
latter␈α
group␈α
of␈α
commands,␈α
the␈α
spliced␈αtext␈αwill␈αbe␈αseen␈αlater␈αby␈αthe␈α(3)␈αscanner,␈αand␈αif
␈↓ ↓H␈β b␈↓βthe␈αspliced␈αtext␈αcontains␈αany␈αof␈αthe␈αspecial␈αcharacters␈αmentioned␈αin␈α
(3),␈α
then␈α
the␈α
corresponding␈α
special
␈↓ ↓H␈β
␈↓βeffect␈αwill␈αof␈αcourse␈αoccur.␈α_(It␈αis␈αgenerally␈αa␈αgood␈αidea␈αto␈αavoid␈αthis␈αexcept␈αin␈αthose␈αcases␈αwhen␈αsuch
␈↓ ↓H␈β
≡␈↓βcomplicated␈α⊃things␈α⊃are␈α⊃actually␈α⊃needed␈α⊃to␈α⊃achieve␈α⊃a␈α⊃complicated␈α⊃effect,␈α⊃as␈α⊂shown␈α⊂in␈α⊂some␈α⊂of␈α⊂the
␈↓ ↓H␈β
<␈↓βadvanced␈α
examples␈α
below.)
␈↓ α_␈β
X␈↓βThe␈↓␈α⊂1␈↓∂!␈↓β␈α⊂and␈↓␈α∂1␈↓∂?␈↓β␈α∂commands␈α∂are␈α∂especially␈α∂interesting␈α∂when␈α∂they␈α∂not␈α∂only␈α∂are␈α∂executed␈α∂while
␈↓ ↓H␈β
x␈↓βscanning␈α~an␈α~argument␈α~but␈α~they␈α~contain␈α~arguments␈α~themselves.␈α4What␈α~happens␈α~is␈α→that␈α→all
␈↓ ↓H␈β⊗␈↓βstatus-information␈αabout␈αthis␈αlevel␈αof␈αargument-scaning␈α(inside␈αthe␈αparsing␈αof␈αthe␈αmacro-call␈αcommand
␈↓ ↓H␈β4␈↓βthat␈α
began␈α
earlier)␈α
is␈αsaved␈αon␈αthe␈αstack,␈αand␈αthis␈αpiece␈αof␈αcode␈αin␈αPOX␈α(i.e.␈α(1)␈αthru␈α(5)␈αas␈αdescribed
␈↓ ↓H␈βR␈↓βhere)␈αis␈αentered␈αrecursively␈αto␈αparse␈αthe␈αnew␈αlevel␈αof␈αmacro-call␈αand␈αarguments␈α
to␈α
it.␈α∀Then␈α
when␈α
that
␈↓ ↓H␈βp␈↓βlevel␈α
of␈α
this␈α
piece␈αof␈αcode␈αreturns,␈αafter␈αsplicing␈αthe␈αinput␈αstream,␈αthat␈αstatus-information␈αis␈αrestored
␈↓ ↓H␈β∞␈↓βand␈α∂scanning␈α∂is␈α∂resumed␈α∞at␈α∞this␈α∞level␈α∞as␈α∞if␈α∞nothing␈α∞had␈α∞happened␈α∞(except,␈α∞of␈α∞course,␈α∞that␈α∞since␈α∞the
␈↓ ↓H␈β,␈↓βinput␈α
stream␈αhas␈αbeen␈αspliced,␈αthe␈αoutput␈αfrom␈αthat␈αlower-level␈αof␈αmacro-expansion␈αwill␈αnow␈αbe␈αseen
␈↓ ↓H␈βJ␈↓βby␈α
the␈α
scanner␈α
at␈α
this␈α
level).
␈↓ α_␈βh␈↓βUsers␈αof␈αLISP␈α1.6␈αand␈αvariants␈αthereof␈αwill␈αnote,␈αin␈αthe␈αcase␈αwhere␈α
no␈α
parsing␈α
side-effects␈α
occur
␈↓ ↓H␈β
ε␈↓β(i.e.␈α∞when␈↓¬␈α∞<COMMA>␈α∞<OPEN>␈↓β␈α∞and␈↓¬␈α∞<CLOSE>␈↓β␈α∞are␈α∞not␈α∞included␈α∞in␈α∞the␈α∞spliced␈α∞text)␈α∞and␈α∞there␈α∞is␈α
exactly␈α
one
␈↓ ↓H␈β
$␈↓βmacro␈αcall␈αor␈αone␈αquoted␈αstring␈αof␈αtext␈αin␈αeach␈αargument,␈αthat␈αthe␈αfinal␈αresult␈αof␈αPOX␈αmacro␈αexpansion
␈↓ ↓H␈β
B␈↓βis␈α⊂exactly␈α⊂the␈α⊂same␈α⊂as␈α⊂the␈α∂corresponding␈α∂LISP␈α∂s-expression␈α∂EVALuation␈α∂in␈α∂which␈α∂every␈α∂function␈α∂is
␈↓ ↓H␈β
`␈↓βeither␈α
an␈α
EXPR␈α
or␈α
a␈α
MACRO.␈α∀For␈α
example,
␈↓ ∧O␈β
|␈↓1␈↓∂!FOO(␈↓1␈↓∂!BAZ(␈↓1␈↓∂!FB;);,␈↓1␈↓∂!GAR(FG););
␈↓ ↓H␈β∞≤␈↓βis␈α∩equivalent␈α∩to␈α∩the␈α∩s-expression␈↓∂␈α∩(FOO␈α∩(BAZ␈α∩(FB))␈α∩(GAR␈α∩(QUOTE␈α∩FG)))␈↓β.␈α$In␈α∩POX␈α⊃there␈α⊃is␈α⊃the
␈↓ ↓H␈β∞:␈↓βadditional␈α∂facility␈α∂of␈α∂appending␈α∂together␈α∂the␈α∂strings␈α∂that␈α∂are␈α∂generated␈α∂by␈α∞multiple␈α∞macro-calls␈α∞and
␈↓ ↓H␈β∞X␈↓βquoted␈α
strings␈α
in␈α
a␈α
single␈α
argument,␈α
for␈α
example:
␈↓ ¬+␈β∞t␈↓1␈↓∂!FOO(BAZ␈↓1␈↓∂!GAR(FG););
␈↓ ↓H␈β∂∀␈↓βis␈α
roughly␈α
equivalent␈α
to␈↓∂␈α
(FOO␈α
(APPEND␈α
(QUOTE␈α
BAZ)␈α
(GAR␈α
(QUOTE␈α
FG))))␈↓β␈α
or␈α
something␈α
like␈α
that.
␈↓ α_␈β∂2␈↓β(5)␈α[The␈αonly␈αway␈αto␈αreach␈αthis␈αpiece␈αof␈αcode␈αis␈αto␈αjump␈αhere␈αfrom␈α(2)␈αafter␈αseeing␈αa␈αsemicolon
␈↓ π␈↓α 18␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 19␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βthere.]␈α~If␈α
the␈α
splice-enabling␈α
flag␈α
was␈α
not␈α
set␈α
above,␈α
then␈α
all␈α
the␈αarguments␈αscanned␈αin␈α(3)␈αetc.,␈αand
␈↓ ↓H␈β↓f␈↓βthe␈α
macro␈α
body␈α
saved␈α
in␈α
(1),␈αare␈αnow␈αflushed␈α(the␈αonly␈αpurpose␈αof␈αall␈αthis␈αscanning␈αwas␈αto␈αmake␈αthe
␈↓ ↓H␈βα∧␈↓βsyntax␈αcome␈αout␈αright␈αat␈αthis␈αlevel,␈αalthough␈αany␈αside-effects␈α(such␈αas␈αstoring␈αa␈αvalue␈αin␈αa␈αregister␈αor
␈↓ ↓H␈βα"␈↓βdefining␈α
a␈α
macro␈α
or␈α
overlay)␈α
during␈α
scanning␈α
arguments␈α
will␈α
of␈α
course␈α
remain␈α
done);␈α
If,␈α
however,␈αthe
␈↓ ↓H␈βα@␈↓βsplice-enabling␈αflag␈α␈↓&was␈↓)αβ␈αset,␈αthen␈αthe␈αcurrent␈αinput␈αstream␈αis␈αnow␈αIOPUSHed␈αso␈αthat␈αit␈αcan␈αbe␈αresumed
␈↓ ↓H␈βα↑␈↓βlater␈α∩when␈α∩the␈α⊃expanded␈α⊃macro␈α⊃we␈α⊃are␈α⊃generating␈α⊃has␈α⊃become␈α⊃exhausted,␈α⊃and␈α⊃the␈α⊃input␈α⊃is␈α⊃now
␈↓ ↓H␈βα|␈↓βswitched␈αto␈αthe␈αmacro␈αbody␈αwe␈αlooked␈αup␈αand␈αset␈αaside␈αin␈α(1)␈αabove,␈αwith␈αthe␈αlist␈αof␈αargument-bodies
␈↓ ↓H␈ββ~␈↓βstanding␈αby␈αto␈αbe␈αreferenced␈αwhenever␈αan␈↓¬␈α<ARGn>␈↓β␈αtoken␈αappears␈αin␈αthe␈αmacro␈αbody.␈α⊗In␈αany␈αcase,␈αthis
␈↓ ↓H␈ββ8␈↓βlong-winded␈α∞piece␈α∞of␈α∞code␈α∞for␈α∞scanning␈α∞macro-calls␈α∞now␈α∞returns␈α
control␈α
to␈α
whoever␈α
called␈α
it␈α
at␈α
this
␈↓ ↓H␈ββV␈↓βlevel.␈α (The␈α⊂equivalent␈α⊂thing␈α⊂in␈α⊂LISP␈α⊂1.6␈α⊂evaluation␈α⊂of␈α⊂s-expressions␈α⊂is␈α⊂that␈α⊂the␈α⊂call␈α∂to␈α∂an␈α∂MACRO
␈↓ ↓H␈ββt␈↓βgenerates␈αan␈αexpression␈αwhich␈αis␈αthen␈αre-evaluated␈αby␈αthe␈αimplicit␈αEVAL␈αthat␈αcalled␈αit␈αwhile␈α
evaluating
␈↓ ↓H␈β∧∩␈↓βarguments␈αto␈αa␈αhigher␈αEXPR␈αor␈αMACRO␈α--␈αyou␈αmay␈αalso␈αcompare␈αPOX␈αmacros␈αto␈αEXPR's,␈αwhich␈α
produce
␈↓ ↓H␈β∧0␈↓βthe␈αsame␈αeffect␈αas␈αMACROs,␈αalthough␈αby␈αa␈αdifferent␈αmechanism␈α--␈αof␈αcourse,␈αthis␈αparallel␈αbreaks␈αdown
␈↓ ↓H␈β∧N␈↓βif␈α∀commas␈α∀or␈α∀unmatched␈α∀nesting␈α∀characters␈α∀are␈α∀returned,␈α∪in␈α∪which␈α∪case␈α∪rather␈α∪bizarre␈α∪parsing
␈↓ ↓H␈β∧l␈↓βside-effects␈α
can␈α
occur␈α
in␈α
POX␈α
--␈α
in␈α
this␈α
respect,␈α
LISP␈α
is␈α
cleaner,␈α
the␈α
only␈α
way␈α
to␈αmake␈αsimilar␈αthings
␈↓ ↓H␈β¬
␈↓βhappen␈α∂is␈α∂to␈α∂explicitly␈α∂mung␈α∂the␈α∂stack.)␈α≡See␈α∂(6)␈α∞for␈α∞what␈α∞actually␈α∞happens␈α∞now␈α∞when␈α∞higher-level
␈↓ ↓H␈β¬(␈↓βroutines␈αattempt␈αto␈αinput␈αcharacters␈αfrom␈αthe␈αmacro-body␈αwith␈αargument-list␈αthat␈αnow␈αconstitutes␈αthe
␈↓ ↓H␈β¬F␈↓βinput␈α
stream.
␈↓ αH␈βεα␈↓βDESCRIPTION OF ALGORITHM FOR READING TEXT FROM A COMPOSITE INPUT STREAM
␈↓ α_␈βε ␈↓β(6)␈αWhen␈αany␈αroutine␈αrequests␈α
to␈α
input␈α
a␈α
character,␈α
the␈α
character␈α
comes␈α
from␈α
either␈α
an␈α
input␈α
file
␈↓ ↓H␈βε>␈↓βor␈αa␈αmacro-body␈αor␈αan␈αargument-body␈α(which␈αis␈αtreated␈αexactly␈αlike␈αa␈αmacro-body␈αexcept␈αthat␈αthe␈αlist
␈↓ ↓H␈βε\␈↓βof␈αarguments␈αis␈αalways␈αnull␈αin␈αthis␈αcase,␈αi.e.␈αarguments␈αcannot␈αthemselves␈αhave␈αarguments).␈α⊗When␈αany
␈↓ ↓H␈βεz␈↓βfile␈α
or␈α
macro-body␈α
is␈α
exhausted,␈α
an␈α
IOPOP␈α
occurs,␈α
so␈α
that␈α
input␈α
continues␈αfrom␈αthe␈αnext-higher␈αinput
␈↓ ↓H␈βπ_␈↓βstream␈α∂that␈α∞was␈α∞suspended␈α∞earlier.␈α≤(When␈α∞the␈α∞top-level␈α∞file␈α∞is␈α∞exhausted,␈α∞an␈α∞END-OF-FILE␈α∞signal␈α∞is
␈↓ ↓H␈βπ6␈↓βpassed␈α
up␈α
and␈α
causes␈α
POX␈α
to␈α
close␈α
out␈αprocessing␈αand␈αexit.)␈α_Finally,␈αif␈αa␈αspecial␈αtoken␈αis␈αseen␈αwhile
␈↓ ↓H␈βπT␈↓βreading␈α∪from␈α∩a␈α∩macro-body,␈α∩the␈α∩following␈α∩actions␈α∩are␈α∩automatically␈α∩taken:␈α$The␈↓¬␈α∩<BRICK>␈↓β␈α∩token␈α∩is
␈↓ ↓H␈βπp␈↓βreplaced␈α
by␈α
the␈α
current␈↓␈α
1␈↓β␈α
character;␈α
The␈↓¬␈α
<ARGn>␈↓β␈α
token␈α
(if␈α
the␈α
table␈α
of␈α
arguments␈α
contains␈α
at␈α
least␈α
n
␈↓ ↓H␈βλ⊂␈↓βarguments)␈αcauses␈αan␈αIOPUSH␈αof␈αthe␈αmacro-body␈α
(with␈α
associated␈α
table␈α
of␈α
arguments),␈α
and␈α
causes␈α
input
␈↓ ↓H␈βλ!␈↓βto␈αbe␈αswitched␈αto␈αthat␈αn␈↓#
th␈↓#␈αargument-body,␈αwhich␈αwill␈αnow␈αbe␈αused␈αuntil␈αit␈αis␈αexhausted,␈αat␈αwhich␈αtime
␈↓ ↓H␈βλL␈↓βthe␈α
original␈α
macro-body␈α
will␈α
resume.
␈↓ ∧U␈β β␈↓Examples of macros with arguments
␈↓ ↓H␈β &␈↓βHere's␈α
the␈↓∂␈α
sbp␈↓β␈α
macro␈α
definition␈α
referred-to␈α
earlier,␈α
and␈α
also␈α
used␈α
later␈αto␈αdemonstrate␈αthe␈αargument
␈↓ ↓H␈β D␈↓βbinding-evaluation␈α
process:
␈↓ αH␈β `␈↓1␈↓∂8sbp(main,sub,sup)[␈↓1␈↓∂F1␈↓1␈↓∂⊗⊗⊗main⊗␈↓1␈↓∂←.␈↓1␈↓∂→0␈↓1␈↓∂↑=15;␈↓1␈↓∂F2⊗sup⊗␈↓1␈↓∂←.␈↓1␈↓∂→1␈↓1␈↓∂N
␈↓ αH␈β }␈↓1␈↓∂←0␈↓1␈↓∂→.␈↓1␈↓∂↓=12;⊗sub⊗␈↓1␈↓∂←.␈↓1␈↓∂~1␈↓1␈↓∂→.␈↓1␈↓∂⊗⊗␈↓1␈↓∂F1]
␈↓ ∧)␈β
7␈↓Detailed examples of argument evaluation
␈↓ α.␈β
Z␈↓∧(The macros called from here, and the fonts used here, are defined in 75224.LMD[1,REM].)
␈↓ ↓H␈β
x␈↓∂\!sbp(X,i-1,n);␈↓ ∧H\;Nothing special here, matching nesting characters, commas
␈↓ ↓H␈β∀␈↓∧X␈↓¬␈↓#si-1␈↓#
␈↓ ↓Xn␈↓#
␈↓ ↓H␈βd␈↓∂\!sbp(X)(i-1)(n);␈↓ ∧H\;One of several other ways to do the same thing
␈↓ ↓H␈β␈↓∧X␈↓¬␈↓#si-1␈↓#
␈↓ ↓Xn␈↓#
␈↓ α*␈βO␈↓∧(You must do ␈↓1␈↓∂⊂'400;␈↓∧ or equivalent before the syntax of nesting (below) will be allowed.)
␈↓ ↓H␈βo␈↓∂\!sbp(X,(\f9i)-1,(\f9n));␈↓ ¬H\;Inside multiple-nested, everything is quoted
␈↓ ↓H␈β
␈↓∂\; Thus evaluation of \f9i doesn't occur while binding, but later
␈↓ ↓H␈β
)␈↓∧X␈↓ ␈↓#si␈↓¬␈↓#s-1␈↓ ␈↓#
␈↓ ↓Xn␈↓#
␈↓ ↓H␈β
f␈↓∂\; \!sbp(X,\f9i-1,\f9n); would not have worked
␈↓ ↓H␈β∞"␈↓∂\!sbp(X,(i,j+1),n);␈↓ ∧H\;Even commas are quoted rather than breaking to next arg
␈↓ ↓H␈β∞>␈↓∧X␈↓¬␈↓#si,j+1␈↓#
␈↓ ↓Xn␈↓#
␈↓ ↓H␈β∂∞␈↓∂\!sbp[X,i,(n)];␈↓ ∧H\;Nesting only applies to the particular nesting pair in use
␈↓ π␈↓α 19␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 20␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓∧X␈↓¬␈↓#si␈↓#
␈↓ ↓X(n)␈↓#
␈↓ ↓H␈βα_␈↓∂\!sbp(X,i,((n)));␈↓ ∧H\;Only the pair at comma-level are snarfed
␈↓ ↓H␈βα4␈↓∧X␈↓¬␈↓#si␈↓#
␈↓ ↓X(n)␈↓#
␈↓ ↓H␈ββ∧␈↓∂\!sig;\!sbp(,i=1,n);␈↓ ∧H\;Null args are just as good as any others
␈↓ ↓H␈ββ ␈↓∞␈↓#sS␈↓¬␈↓#si=1␈↓#
␈↓ ↓ln␈↓#
␈↓ ↓H␈ββ{␈↓∂\!sbp(NESTING CHARACTERS:,⊗⊗//↓↓∂∂||""∧∧∨∨∪∪∩∩↑↑!!$$%%)|() [] {} <> ≤≥ ⊂⊃ →←|;\;
␈↓ ↓H␈β∧→␈↓∂\;Sometimes you want to pick a nesting character you aren't using in the body
␈↓ ↓H␈β∧5␈↓∧NESTING CHARACTERS:␈↓¬␈↓#s⊗⊗//↓↓∂∂||""∧∧∨∨∪∪∩∩↑↑!!$$%%␈↓#
␈↓ βk() [] {} <> ≤≥ ⊂⊃ →←␈↓#
␈↓ ↓H␈⬬␈↓∂\!sbp[X,f(i,j),n+2];␈↓ ∧H\;Avoid expressions like this, their implementation may change
␈↓ ↓H␈β¬!␈↓∧X␈↓¬␈↓#sf(i␈↓#
␈↓ ↓Xj)␈↓#
␈↓ ↓H␈β¬q␈↓∂\; -- Define a bunch of month names as if they were elements of an array almost
␈↓ ↓H␈βε∂␈↓∂\∞MONTH1⊂January⊃\∞MONTH2⊂February⊃\∞MONTH3⊂March⊃\;
␈↓ ↓H␈βε-␈↓∂\∞MONTH4⊂April⊃\∞MONTH5⊂May⊃\∞MONTH6⊂June⊃\;
␈↓ ↓H␈βεK␈↓∂\∞MONTH7⊂July⊃\∞MONTH8⊂August⊃\∞MONTH9⊂September⊃\;
␈↓ ↓H␈βεi␈↓∂\∞MONTH10⊂October⊃\∞MONTH11⊂November⊃\∞MONTH12⊂December⊃\;
␈↓ ↓H␈βπ%␈↓∂\8MONTH(NSTR)[\!MONTH⊗NSTR⊗;]\; -- Generates the name of month, takes decimal string
␈↓ ↓H␈βπa␈↓∂\u'400101;\;␈↓ εHACCTIM UUO = CALLI 400101
␈↓ ↓H␈βπ␈␈↓∂\L=-18;\/=31;\→D\%=12;\+=1;\→M\;␈↓ εHMonth number in register M now.
␈↓ ↓H␈βλ≥␈↓∂\!MONTH(\DM);\; ␈↓ ¬H(1) Scan and evaluate and bind argument, resulting
␈↓ ↓H␈βλ;␈↓∂\;␈↓ ¬H in effectively \!MONTH(4); if this is still April
␈↓ ↓H␈βλY␈↓∂\;␈↓ ∧H(2) Call macro with argument list to generate a splice
␈↓ ↓H␈βλw␈↓∂\;␈↓ ∧H in the input stream, which reads: \!MONTH4;
␈↓ ↓H␈β ∃␈↓∂\;␈↓ βH(3) Continue reading characters from whatever the input stream is now,
␈↓ ↓H␈β 3␈↓∂\;␈↓ βH namely the string \!MONTH4; followed by the rest of the input file.
␈↓ ↓H␈β Q␈↓∂\;␈↓ αH(4) The \!MONTH4; now binds an empty list of args, calls the macro MONTH4,
␈↓ ↓H␈β o␈↓∂\;␈↓ αH and splices the string April into the input stream, which is then read
␈↓ ↓H␈β
␈↓∂\;␈↓ αH and output in the current mode (pass-as-is in this example).
␈↓ ↓H␈β
+␈↓∧December
␈↓ ↓H␈β
g␈↓∧LISP␈αprogrammers␈αwill␈αnote␈αthat␈αthis␈αis␈αquite␈αsimilar␈αto␈αthe␈αway␈αEXPRs␈αare␈αevaluated␈αin␈αLISP.␈α⊗In␈αfact,␈αthe
␈↓ ↓H␈β¬␈↓∧following␈αmacro␈αdefinition␈αwill␈αcreate␈αa␈αmacro␈αthat␈αacts␈αlike␈αEVAL␈αin␈αLISP,␈αnamely␈αEVAL(expression)␈αcauses
␈↓ ↓H␈β#␈↓∧expression␈α
to␈α
get␈αevaluated␈αtwice,␈αonce␈αwhile␈αevaluating␈αand␈αbinding␈αarguments,␈αand␈αthen␈αagain␈αwhen␈αthe
␈↓ ↓H␈βA␈↓∧result␈α∞of␈α∞the␈α∞macro␈α∞expansion␈α∞is␈α∞seen␈α∞in␈α∞the␈α∞input␈α∞stream.␈α~The␈α
usefulness␈α
of␈α
this␈α
is␈α
that␈α
you␈α
can␈α
patch
␈↓ ↓H␈β←␈↓∧together␈α∞various␈α∞strings,␈α∞some␈α∞quoted␈α∞(you␈α∞get␈α∞what␈α∞you␈α∞had␈α∞in␈α∞the␈α
input␈α
file)␈α
and␈α
some␈α
resulting␈α
from
␈↓ ↓H␈β|␈↓∧macro␈αcalls␈αor␈αcommands␈αlike␈↓␈α1D␈↓∧,␈αand␈αthen␈αthe␈αresultant␈αstring␈αgets␈αevaluated␈α
as␈α
if␈α
it␈α
had␈α
been␈α
in␈α
your␈α
input
␈↓ ↓H␈β≤␈↓∧file␈α
all␈α
along.␈α~For␈α
example,␈α
the␈α
above␈α
effect␈α
of␈α
MONTH(NSTR)␈α
can␈α
be␈α
obtained␈α
by␈α
calling␈αEVAL␈αwith␈αthe
␈↓ ↓H␈β:␈↓∧appropriately␈α
constructed␈α
argument.
␈↓ ↓H␈βX␈↓∂\8EVAL(expr)[⊗expr⊗]\;␈↓ εHAs described above
␈↓ ↓H␈βv␈↓∂\!EVAL[[\!MONTH(]\DM);];\;␈↓ ¬H(1) The following is output to the argument body:
␈↓ ↓H␈β
∀␈↓∂\;␈↓ ¬H (a) The quoted string \!MONTH
␈↓ ↓H␈β
2␈↓∂\;␈↓ ¬H (b) The decimal string value of register M
␈↓ ↓H␈β
P␈↓∂\;␈↓ ¬H (c) The close-parenthesis and semicolon
␈↓ ↓H␈β
n␈↓∂\;␈↓ ∧H(2) The string spliced in is \!MONTH(4); if this is still april
␈↓ ↓H␈β∞␈↓∂\!EVAL[\\!MONTH(\DM);];\; An older way that still works, quote the escape character by \\
␈↓ ↓H␈β∞*␈↓∂\; -- you see it below done both ways on the same line, no difference in effect --
␈↓ ↓H␈β∞H␈↓∧DecemberDecember
␈↓ ↓H␈β∂∧␈↓∂\; Evaluate a macro and use the result as a brick command to evaluate:
␈↓ ↓H␈β∂"␈↓∂\!EVAL(\\\!FOO;);\; Like \\!FOO; parsed right-to-left sort-of
␈↓ π␈↓α 20␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 21␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓f␈↓∂$8RECURSExFOO(N)[$F3(FOO)$←=⊗N⊗;$-=1;$?RECURSExFOO($D∀);]
␈↓ ↓H␈βα∧␈↓∂$; the above macro explicitly calls itself with one less than its argument
␈↓ ↓H␈βα"␈↓∂$!RECURSExFOO{15};$; {} are just as good as () in such places as here
␈↓ ↓H␈βα|␈↓β(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)(FOO)
␈↓ α_␈ββV␈↓βHere␈α∞is␈α∞a␈α∞macro␈α∞that␈α∞can␈α∞be␈α∞used␈α∞to␈α∞compile␈α∞page␈α∞numbers␈α∞into␈α∞a␈α
table␈α
of␈α
contents␈α
or␈α
index,
␈↓ ↓H␈ββt␈↓βproviding␈α∪that␈α∪the␈α∪contents␈α∩or␈α∩index␈α∩appears␈α∩in␈α∩the␈α∩output␈α∩file␈α∩after␈α∩all␈α∩referenced␈α∩items␈α∩have
␈↓ ↓H␈β∧∩␈↓βoccurred.␈α$This␈α∩is␈α∩the␈α∩macro␈α⊃used␈α⊃in␈α⊃the␈α⊃POX␈α⊃writeup␈α⊃to␈α⊃make␈α⊃the␈α⊃contents␈α⊃and␈α⊃appendix␈α⊃page
␈↓ ↓H␈β∧0␈↓βreferences.
␈↓ αH␈β∧N␈↓∂$8DEFCONT(ITEM)[$!EVAL(($∞CX⊗ITEM⊗{)$←#$¬=10;$?SPACEXY;$D#(}));]$;
␈↓ α_␈β∧l␈↓βThe␈αthree␈αtypes␈αof␈αnesting␈αcharacters,␈↓∂␈α[]␈α()␈↓β␈αand␈α{},␈αare␈αused␈αto␈αisolate␈αnesting␈αprocessing␈αinto
␈↓ ↓H␈β¬
␈↓βthree␈αlevels␈αin␈αwhich␈αthe␈αother␈αnesting␈αcharcters␈αare␈αpassed␈α
as␈α
text.␈α∀This␈α
macro␈α
assumes␈α
that␈α
register
␈↓ ↓H␈β¬(␈↓∂#␈↓β␈α∪always␈α∪contains␈α∩the␈α∩correct␈α∩page␈α∩number,␈α∩and␈α∩that␈α∩there␈α∩is␈α∩a␈α∩macro␈α∩called␈α∩"SPACEXY"␈α∩which
␈↓ ↓H␈β¬F␈↓βgenerates␈αan␈αASCII␈α040␈α(space)␈αcharacter␈αto␈αbe␈αused␈αas␈αzero-fill␈αto␈αthe␈αleft␈αof␈αone-digit␈αnumbers,␈αand
␈↓ ↓H␈β¬d␈↓βthat␈α
page␈α
numbers␈α
above␈α
99␈α
do␈α
not␈α
occur.␈α~Here's␈α
a␈α
detailed␈α
description␈αof␈αwhat␈αhappens␈αwhen␈αthis
␈↓ ↓H␈βεα␈↓βmacro␈α
is␈α
used:
␈↓ α_␈βε ␈↓∂$8␈↓β...;␈αat␈αstart␈αof␈αthe␈αfile␈α--␈αA␈αmacro␈αwith␈αarguments␈αis␈αset␈αup,␈αwith␈αthe␈αname␈α"DEFCONT",␈αand␈αthe
␈↓ ↓H␈βε>␈↓βbody␈α<BRICK>␈α"!EVAL(("␈α<BRICK>␈α"∞CX"␈α<ARG␈α
1>␈α
{)"␈α
<BRICK>␈α
"←#"␈α
<BRICK>␈α
"¬=10;"␈α
<BRICK>␈α
"?SPACEXY;"
␈↓ ↓H␈βε[␈↓β<BRICK>␈α"D#(}));"␈αwhere␈α<BRICK>␈αdenotes␈αthe␈↓␈α1␈↓β␈αtoken␈α(stored␈αinternally␈αas␈α177,175),␈α<ARG␈α1>␈αdenotes
␈↓ ↓H␈βε{␈↓βthe␈αargument-number-1␈αtoken␈α
(stored␈α
internally␈α
as␈α
177,001),␈α
and␈α
other␈α
parts␈α
are␈α
between␈α
quote␈α
marks
␈↓ ↓H␈βπ→␈↓βhere␈αto␈αavoid␈α
ambiguity␈α
as␈α
you␈α
try␈α
to␈α
read␈α
this.␈α∀(This␈α
assumes␈α
you␈α
have␈α
VERESC␈α
turned␈α
on.␈α∀Otherwise
␈↓ ↓H␈βπ6␈↓βyou␈α∞just␈α∞get␈α∞the␈α∞dollar-sign␈α∞character␈α∞in␈α∞the␈α∞macro␈α∞body␈α∞instead␈α
of␈α
the␈↓␈α
1␈↓β␈α
token,␈α
and␈α
what␈α
happens
␈↓ ↓H␈βπV␈↓βlater␈α
in␈α
this␈α
example␈α
when␈α
"␈↓∂\␈↓β"␈α
is␈α
the␈α
brick␈α
character␈α
won't␈α
work.)
␈↓ α_␈βπt␈↓β\DEFCONT(A3);␈αat␈αthe␈αlocation␈αin␈αthe␈αfile␈αdesired␈α("␈↓∂\␈↓β"␈αhappens␈αto␈αbe␈αthe␈αbrick␈α
character␈α
here)␈α
--
␈↓ ↓H␈βλ∩␈↓βThe␈α
body␈α
of␈α
the␈αDEFCONT␈αmacro␈αis␈αpatched␈αinto␈αthe␈αinput␈αstream,␈αand␈αin␈αthe␈αprocess␈αof␈αreading␈αit␈αin
␈↓ ↓H␈βλ/␈↓βthe␈α
<BRICK>␈α
and␈α
<ARG␈α1>␈αare␈αreplaced␈αby␈α"␈↓1␈↓β"␈αand␈α"␈↓∂A3␈↓β"␈αrespectively,␈αresulting␈αin␈αthe␈αfollowing␈αstring
␈↓ ↓H␈βλO␈↓βbeing␈α
effectively␈α
in␈α
the␈α
input␈α
stream:␈α∀"␈↓∂\!EVAL((\∞CXA3{)\←#\¬=10;\?SPACEXY;\D#(}));␈↓β".
␈↓ α_␈βλm␈↓βThe␈α∞"EVAL"␈α∞macro␈α∞is␈α
then␈α
called,␈α
and␈α
in␈α
the␈α
process␈α
of␈α
binding␈α
its␈α
one␈α
argument␈α
the␈α
following
␈↓ ↓H␈β ␈↓βhappens:␈α
(1)␈α
The␈α
string␈α
"␈↓∂\∞CXA3{␈↓β"␈α
is␈αpassed␈αas␈α(quoted)␈αtext;␈α(2)␈αRegister␈↓∂␈α#␈↓β␈αis␈αfetched␈αand␈αtested␈αto
␈↓ ↓H␈β )␈↓βsee␈α_if␈α_it␈α_is␈α↔less␈α↔than␈α↔ten,␈α↔if␈α↔so␈α↔the␈α↔SPACEXY␈α↔macro␈α↔generates␈α↔a␈α↔space␈α↔character␈α↔(in␈α↔the
␈↓ ↓H␈β G␈↓βargument-to-EVAL␈α∞being␈α∞constructed);␈α∞(3)␈α
Register␈↓∂␈α
#␈↓β␈α
is␈α
fetched␈α
again␈α
,␈α
converted␈α
into␈α
decimal␈α
string,
␈↓ ↓H␈β e␈↓βand␈αappended␈αto␈αthe␈αargument;␈α(4)␈αThe␈αstring␈α"␈↓∂}␈↓β"␈α(one␈αcharacter)␈α
is␈α
passed␈α
(quoted);␈α
(5)␈α
The␈α
input␈α
text
␈↓ ↓H␈β
β␈↓β"␈↓∂);␈↓β"␈α
terminates␈α
the␈αbinding␈αof␈αthe␈αfirst␈αargument,␈αand␈αterminates␈αall␈αbinding␈αfor␈αthe␈αcall␈αof␈αEVAL,␈αand
␈↓ ↓H␈β
!␈↓βthe␈α
body␈α
of␈α
EVAL,␈α
which␈α
consists␈α
solely␈α
of␈α
the␈α
<ARG␈α
1>␈α
token,␈α
is␈α
patched␈α
into␈α
the␈α
input␈α
stream.
␈↓ α_␈β
?␈↓βThus␈αif␈αthis␈αis␈αdone␈αon␈αpage␈α5,␈αthe␈αstring␈α"␈↓∂\∞CXA3{␈α5}␈↓β"␈α(the␈αargument)␈αis␈αnow␈αeffectively␈αin␈αthe
␈↓ ↓H␈β
]␈↓βinput␈α
stream.␈α∀Upon␈α
reading␈α
all␈α
that␈α
(generated)␈α
input,␈α
the␈α
macro␈α
"CXA3"␈α
is␈α
defined,␈α
with␈α
body␈α
"␈↓∂␈α
5␈↓β".
␈↓ α_␈β
z␈↓βLater,␈αfor␈αexample␈αin␈α
the␈α
table␈α
of␈α
contents␈α
page,␈α
the␈α
string␈↓␈α
1␈↓∂!CXA3;␈↓β␈α
--␈α
will␈α
generate␈α
the␈α
correct
␈↓ ↓H␈β~␈↓βpage␈α
reference␈α
for␈α
item␈α
A3␈α
in␈α
the␈α
document,␈α
namely␈α
the␈α
string␈α
"␈↓∂␈α
5␈↓β"␈α
in␈α
this␈α
case.
␈↓ α␈βV␈↓βHere is the setup for the EVERYPAGE macro that was used in this writeup (\ is escape char.):
␈↓ ↓H␈βs␈↓∂\!ACCTIM;\; load a register with system date-time by means of the ␈↓1␈↓∂u command
␈↓ ↓H␈β∪␈↓∂\!EVAL((\∞TODAY[)\!DATIME;(]));\;
␈↓ ↓H␈β1␈↓∂\; call DATIME (in DATIME.POX[1,REM]) and hardwire the result into the TODAY macro
␈↓ ↓H␈βO␈↓∂\∞IDENT[POX writeup -- compiled by POX on ]\;
␈↓ ↓H␈βm␈↓∂\oEP1[2\!IDENT;\!TODAY; -- page ]\; hardwire all but the page number into an overlay
␈↓ βk␈β
␈↓βand here is the actual macro definition ($ is escape char.):
␈↓ ↓H␈β
)␈↓∂$8EVERYPAGE(dummyarg)[$←#$+=1;$→#$oEP2{2 $D#}$&EP←EP1&EP2;$N
␈↓ ↓H␈β
G␈↓∂$QA$1EP;$→A$2EP;$¬A$/=2;$+=850;$→A$N
␈↓ ↓H␈β
e␈↓∂$WEP,A=150;$WEP,A=2100;$qA]$; generate page number, combine overlays, align
␈↓ α_␈β∞!␈↓βNote␈αthat␈αsome␈αtricky␈αthings␈αwere␈αdone␈α
in␈α
creating␈α
the␈α
everypage␈α
macro␈α
so␈α
that␈α
the␈α
time-of-day
␈↓ ↓H␈β∞?␈↓βwouldn't␈αbe␈αrecompiled␈αon␈αeverypage␈α(otherwise␈αif␈αthe␈αsystem␈αwere␈αvery␈αbusy,␈αeach␈αpage␈αmight␈αhave
␈↓ ↓H␈β∞]␈↓βa␈α⊃different␈α⊃time-of-compilation.␈α"In␈α⊃general,␈α⊃in␈α⊃POX␈α⊃the␈α⊃order␈α⊃of␈α⊃evaluation␈α⊃of␈α⊂arguments␈α⊂may␈α⊂be
␈↓ ↓H␈β∞{␈↓βcontrolled␈α∩by␈α∩means␈α∩of␈α∩calls␈α∩to␈α∩EVAL␈α∩(to␈α∩cause␈α∩an␈α∩extra␈α∩evaluation␈α⊃to␈α⊃occur)␈α⊃and␈α⊃using␈α⊃nesting
␈↓ ↓H␈β∂→␈↓βcharacters␈α∂to␈α∂quote␈α∂portions␈α∂of␈α∂arguments␈α∂(to␈α∂suppress␈α∂or␈α∂postpone␈α∂an␈α∂evaluation).␈α≡The␈α∞following
␈↓ ↓H␈β∂7␈↓βexample␈α
should␈α
show␈α
you␈α
some␈α
of␈α
the␈α
options␈α
you␈α
can␈α
create␈α
by␈α
use␈α
of␈α
this␈α
technique.
␈↓ π␈↓α 21␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 22␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ α_␈β↓H␈↓βSuppose␈αthat␈αMONTHNUMBER␈αis␈αa␈αmacro␈αthat␈αasks␈αthe␈αsystem␈α
for␈α
the␈α
date␈α
and␈α
time,␈α
and␈α
decodes
␈↓ ↓H␈β↓f␈↓βthe␈αnumber␈αof␈αmonth␈α(0␈αto␈α11␈αdecimal)␈αleaving␈αit␈αin␈αregister␈αM.␈α⊗Suppose␈αthat␈αMONTH1␈αis␈αa␈αmacro␈αthat
␈↓ ↓H␈βα∧␈↓βis␈α∩the␈α∩ASCII␈α∩name␈α∩of␈α∩the␈α∩first␈α∩month␈α⊃(January)␈α⊃etc.␈α⊃up␈α⊃to␈α⊃MONTH12␈α⊃=␈α⊃December.␈α"Suppose␈α⊃that
␈↓ ↓H␈βα"␈↓βMONTHN(n)␈α∞is␈α∞a␈α∞macro␈α∞with␈α∞one␈α∞argument␈α∞that␈α∞concatenates␈α∞the␈α∞string␈α∞"␈↓∂$!MONTH␈↓β"␈α∞with␈α∞its␈α
argument
␈↓ ↓H␈βα@␈↓β(assumed␈αto␈αbe␈αa␈α
decimal␈α
number␈α
string)␈α
and␈α
with␈α
a␈α
semicolon,␈α
so␈α
that␈α
for␈α
example␈α
"␈↓∂$!MONTHN(3)␈↓β;"␈α
will
␈↓ ↓H␈βα↑␈↓βpatch␈α
"␈↓∂$!MONTH3;␈↓β"␈α
into␈α
the␈α
input␈αstream␈αwhich␈αwill␈αthen␈αgenerate␈α"␈↓∂March␈↓β".␈α_The␈αfollowing␈αcommands
␈↓ ↓H␈βα|␈↓βwill␈α
then␈α
generate␈α
the␈α
correct␈α
result,␈α
assuming␈α
this␈α
month␈α
is␈α
neither␈α
January␈α
nor␈α
December:
␈↓ ↓H␈ββ~␈↓∂$!MONTHNUMBER;$;
␈↓ ↓H␈ββ8␈↓∂This month is $!MONTHN($DM); and next month is $!MONTHN($←M$+=1;$D∀);.
␈↓ ↓H␈ββV␈↓∂Last month was $!MONTHN($←M$-=1;$D∀);.
␈↓ α_␈ββt␈↓βNote␈α∞that␈α
if␈α
the␈α
contents␈α
of␈α
register␈α
M␈α
are␈α
changed,␈α
the␈α
result␈α
of␈α
calling␈α
MONTH($DM)␈α
changes
␈↓ ↓H␈β∧∩␈↓βaccordingly,␈α
and␈α
if␈α
any␈α
of␈α
the␈α
MONTH1␈α
MONTH2␈α
...␈αMONTH12␈αmacros␈αare␈αchanged␈α(such␈αas␈αto␈αa␈αset␈αof
␈↓ ↓H␈β∧0␈↓βabbreviations␈αfor␈αthe␈αmonths)␈αthen␈αthe␈α
result␈α
of␈α
calling␈α
MONTHN␈α
will␈α
change␈α
in␈α
the␈α
particular␈α
cases␈α
that
␈↓ ↓H␈β∧N␈↓βwere␈α⊃changed.␈α"That␈α⊃is␈α⊃because␈α⊃register␈α⊃M␈α⊃is␈α⊃referenced␈α⊃and␈α⊃macros␈α⊂MONTHN($DM)␈α⊂and␈α⊂MONTH6
␈↓ ↓H␈β∧l␈↓β(assuming␈αthis␈αis␈αstill␈αJune)␈αare␈αcalled␈αevery␈αtime␈↓∂␈α
$!MONTH($DM);␈↓β␈α
appears␈α
in␈α
the␈α
input␈α
stream.␈α∀Thus␈α
if
␈↓ ↓H␈β¬
␈↓βTHISMONTH␈α⊂is␈α⊂defined␈α⊂as␈α⊂the␈α⊂successive␈α∂calling␈α∂of␈α∂MONTHNUMBER␈α∂and␈α∂MONTH($DM)␈α∂then␈α∂everytime
␈↓ ↓H␈β¬(␈↓βTHISMONTH␈α∞is␈α∞called␈α∞register␈α∞M␈α∞will␈α∞be␈α
clobbered␈α
and␈α
MONTHN($DM)␈α
and␈α
MONTH6␈α
will␈α
be␈α
called.␈α~By
␈↓ ↓H␈β¬F␈↓βappropriate␈α∂control␈α∂of␈α∂evaluation,␈α∂it␈α∂is␈α∂possible␈α∂to␈α∂call␈α∂some␈α∂of␈α∂those␈α∂things␈α∂once␈α∂at␈α∂the␈α∂beginning
␈↓ ↓H␈β¬d␈↓β(when␈α
THISMONTH␈α
is␈α
defined)␈α
and␈α
hardwire␈α
their␈α
results␈α
into␈α
the␈α
definition␈α
of␈α
THISMONTH:
␈↓ ↓H␈βεα␈↓∂$!EVAL(($∞THISMONTH[)$!MONTHNUMBER;$!MONTHN($DM);(]))$;
␈↓ ↓H␈βε ␈↓∂$; "$∞THISMONTH[" is quoted, "$!MONTHNUMBER;" and "$!MONTH;" are called
␈↓ ↓H␈βε>␈↓∂$; resulting in the string "June" if it is still June, "]" is quoted, and
␈↓ ↓H␈βε\␈↓∂$; all these parts are concatenated into one string which is passed to
␈↓ ↓H␈βεz␈↓∂$; EVAL as its argument "$∞THISMONTH[June]" which is then patched into
␈↓ ↓H␈βπ_␈↓∂$; the input stream, causing THISMONTH to be permanently defined as "June".
␈↓ ↓H␈βπT␈↓∂$!EVAL(($∞THISMONTH[)$!MONTHNUMBER;($!MONTHN{)$DM(};]))$;
␈↓ ↓H␈βπr␈↓∂$; "$∞THISMONTH[" is quoted, "$!MONTHNUMBER;" is called resulting in register
␈↓ ↓H␈βλ⊂␈↓∂$; M getting defined now, "$!MONTHN{" is quoted, the decimal conversion of
␈↓ ↓H␈βλ.␈↓∂$; the contents of M we have just computed earlier come next, then "};]"
␈↓ ↓H␈βλL␈↓∂$; is quoted, and all the above is concatenated into
␈↓ ↓H␈βλj␈↓∂$; "$∞THISMONTH[$!MONTHN{6};]" which causes THISMONTH to be defined so as
␈↓ ↓H␈β λ␈↓∂$; to call MONTHN(6) every time. Thus register M is freed for other use
␈↓ ↓H␈β &␈↓∂$; without affecting THISMONTH but redefinition of MONTH6 will cause
␈↓ ↓H␈β D␈↓∂$; THISMONTH to change accordingly.
␈↓ ¬∀␈β }␈↓ALTERNATE OUTPUT FILES
␈↓ α_␈β
!␈↓βWhereas␈α
the␈↓␈α
1␈↓∂@␈↓β...␈α
command␈α
reads␈α
in␈αa␈αfile␈αand␈αprocesses␈αit␈αas␈αif␈αthe␈αtext␈αin␈αit␈αhad␈αbeen␈αedited
␈↓ ↓H␈β
A␈↓βinto␈αthe␈αmain␈αinput␈αfile,␈αthe␈αcommands␈αin␈αthis␈αsection␈αare␈αused␈αto␈αwrite␈α
text␈α
into␈α
a␈α
file␈α
(overwriting␈α
any
␈↓ ↓H␈β
←␈↓βexisting␈α
file␈α
by␈α
the␈α
same␈α
name),␈α
usually␈α
for␈α
the␈α
purpose␈α
of␈α
reading␈α
it␈α
back␈αin␈αlater␈αand␈αprocessing␈αit
␈↓ ↓H␈β
⎇␈↓βfurther␈α∂at␈α∂that␈α∂time.␈α≡Thus␈α∂a␈α∂table␈α∂of␈α∂contents␈α∂or␈α∞a␈α∞batch␈α∞of␈α∞footnotes␈α∞can␈α∞be␈α∞generated␈α∞over␈α∞the
␈↓ ↓H␈β≠␈↓βcourse␈αof␈αa␈αcomplete␈αdocument␈αor␈αa␈αchapter,␈αthen␈αread␈αback␈αin␈αat␈αthe␈αend␈αand␈αemitted␈αfully␈αprocessed
␈↓ ↓H␈β9␈↓βinto␈αthe␈αmain␈α(.XGP)␈αoutput␈αfile.␈α⊗A␈α
table␈α
of␈α
contents␈α
emitted␈α
at␈α
the␈α
end␈α
of␈α
a␈α
document␈α
can␈α
of␈α
course␈α
be
␈↓ ↓H␈βW␈↓βmoved␈α
up␈α
to␈α
the␈α
front␈α
of␈α
the␈α
document␈α
before␈α
binding.
␈↓ ↓H␈βt␈↓1␈↓∂<␈↓εq␈↓¬<FILNAM>␈↓β␈↓ β⊂(U␈αJ␈αCR␈αo)␈α--␈αOpen␈αthe␈αfile␈↓¬␈α<FILNAM>␈↓β␈αon␈αlogical␈αi/o␈αchannel␈↓ε␈αq␈↓β.␈α⊗Available
␈↓ β⊂␈β≤␈↓βlogical␈αchannels␈αare␈α
numbered␈α
from␈α
1␈α
to␈α
approximately␈α
10␈α
(decimal)␈α
so␈α
I
␈↓ β⊂␈β:␈↓βdon't␈α∞except␈α∞any␈α∞normal␈α∞users␈α∞to␈α∞run␈α∞out␈α∞of␈α∞channels.␈α≠The␈α
following
␈↓ β⊂␈βX␈↓βcommand,␈α∂for␈α∂example,␈α∂will␈α∂create␈α∂the␈α∂file␈↓∂␈α∞CONT.TMP␈↓β␈α∞on␈α∞your␈α∞default
␈↓ β⊂␈βu␈↓β(DSKPPN)␈α
disk␈α
area:␈↓␈α∀1␈↓∂<=1;CONT.TMP;
␈↓ ↓H␈β
∀␈↓1␈↓∂=␈↓εq␈↓¬<OPEN><TEXT><CLOSE>
␈↓ β⊂␈β
7␈↓β(U␈α
J␈α
CR␈α
o␈α
A)␈α--␈αSelect␈αlogical␈αi/o␈αchannel␈↓ε␈αq␈↓β␈αfor␈αoutput,␈αparse␈αthe␈αtext
␈↓ β⊂␈β
←␈↓βbetween␈α⊃matching␈↓¬␈α⊃<OPEN>␈↓β␈α⊃and␈↓¬␈α⊂<CLOSE>␈↓β␈α⊂exactly␈α⊂the␈α⊂same␈α⊂way␈α⊂as␈α⊂if␈α⊂it
␈↓ β⊂␈β
⎇␈↓βwere␈α
an␈α
argument␈α
to␈αa␈αmacro␈α(except␈αthat␈αcomma␈αdoesn't␈αcause␈αbreak
␈↓ β⊂␈β∞≠␈↓βin␈αparsing␈αbecause␈αonly␈αone␈α"argument"␈αis␈αever␈αparsed).␈α⊗The␈αresult␈αof
␈↓ β⊂␈β∞9␈↓βparsing␈α∂the␈α∂text␈α∂is␈α∂written␈α∂into␈α∂the␈α∞file␈α∞open␈α∞on␈α∞that␈α∞channel.␈α≤After
␈↓ β⊂␈β∞W␈↓βreaching␈↓¬␈α⊗<CLOSE>␈↓β␈α⊗the␈α⊗output␈α⊗is␈α⊗switched␈α⊗back␈α⊗to␈α⊗normal␈α⊗but␈α∃the
␈↓ β⊂␈β∞t␈↓βalternate␈αoutput␈αfile␈αis␈αleft␈αopen␈αin␈αcase␈αadditional␈↓␈α1␈↓∂=␈↓β...␈α⊗commands␈αare
␈↓ β⊂␈β∂∀␈↓βissued.␈α5Of␈α~course␈α~if␈α~several␈α~alternate␈α~output␈α~files␈α~are␈α~open
␈↓ β⊂␈β∂2␈↓βsimultaneously,␈α∞chunks␈α∞of␈α∞text␈α
may␈α
be␈α
emitted␈α
into␈α
them␈α
in␈α
whichever
␈↓ π␈↓α 22␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 23␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ β⊂␈β↓H␈↓βsequence␈αthe␈αuser␈αdesires␈αby␈αusing␈αone␈↓␈α
1␈↓∂=␈↓β...␈α
commands␈α
for␈α
each␈α
chunk.
␈↓ β⊂␈β↓h␈↓β(Note,␈α∩just␈α∩like␈α∩arguments␈α∩to␈α∩macros,␈α∩only␈α∩pure␈α∩ASCII␈α∩text␈α∩may␈α⊃be
␈↓ β⊂␈βαε␈↓βgenerated,␈α∞not␈α∞XGP␈α∞escape␈α∞sequences␈α∞like␈α∞font␈α∞selects␈α∞etc.␈α~Typically
␈↓ β⊂␈βα$␈↓βwhat␈α
is␈αemitted␈αare␈αsequences␈αthat␈αinclude␈αthe␈αbrick␈αcharacter,␈αquoted
␈↓ β⊂␈βαB␈↓βso␈α⊂that␈α⊂the␈α∂brick␈α∂characters␈α∂are␈α∂actually␈α∂emitted␈α∂into␈α∂the␈α∂file␈α∂rather
␈↓ β⊂␈βα`␈↓βthan␈α∪evaluated␈α∪now,␈α∪then␈α∪when␈α∪the␈α∪file␈α∩is␈α∩read␈α∩back␈α∩in␈α∩the␈α∩brick
␈↓ β⊂␈βα}␈↓βcommands␈α
will␈α
be␈α
evaluated␈α
(executed).)
␈↓ ↓H␈ββ≠␈↓1␈↓∂>␈↓εq␈↓β␈↓ β⊂(U␈αJ␈αCR␈αo)␈α--␈αClose␈αthe␈αfile␈αon␈αlogical␈α
i/o␈α
channel␈↓ε␈α
q␈↓β.␈α∀This␈α
must␈α
be␈α
done
␈↓ β⊂␈ββC␈↓βbefore␈α
the␈α
file␈α
can␈α
be␈α
read␈α
back␈α
in␈α
or␈α
accessed␈α
by␈α
another␈α
program.
␈↓ ↓H␈ββ␈␈↓βExample of generating footnotes for end of the chapter:
␈↓ ↓H␈β∧'␈↓∂\<=2;FOOT.TMP;\N␈↓β␈↓ ε}At front of chapter, open the file
␈↓ ↓H␈β∧O␈↓∂\==2;(\←#\+=1;\→#\N␈↓β␈↓ ¬)Each footnote: Increment footnote counter, then...
␈↓ ↓H␈β∧m␈↓∂\D#\"\jMcCarthy, John, LISP 1.5 Programmer's Manual.\"\.
␈↓ ↓H␈β¬␈↓∂)\N␈↓β␈↓ β`Emit␈α⊂footnote␈α⊂number␈α⊂in␈α⊂decimal␈α⊂at␈α⊂left␈α⊂margin,␈α∂pass␈α∂a␈α∂quoted
␈↓ β⊂␈β¬)␈↓βbrick␈α∞j␈α∞command,␈α∞pass␈α∞the␈α∞text␈α∞of␈α∞the␈α∞footnote,␈α
pass␈α
a␈α
quoted␈α
brick␈α
.
␈↓ β⊂␈β¬G␈↓βcommand,␈α
de-select␈α
alternate␈α
output.␈α∀Normally␈α
all␈α
this␈α
would␈α
be␈α
defined
␈↓ β⊂␈β¬e␈↓βas␈α∩a␈α∩macro␈α∩that␈α∩took␈α∩the␈α∩text␈α∩between␈α∩the␈↓∂␈α∩\j␈↓β␈α∩and␈α∩the␈↓∂␈α∩\.␈↓β␈α∩as␈α∩an
␈↓ β⊂␈βεβ␈↓βargument.
␈↓ ↓H␈βε+␈↓∂\>=2;\N␈↓β␈↓ π
At end of chapter, close the file
␈↓ ↓H␈βεI␈↓∂\@FOOT.TXT;\N␈↓β␈↓ ¬Pand read it back in (and parse it) in one chunk.
␈↓ ∧|␈βπ6␈↓ENABLING SPECIAL FEATURES
␈↓ α_␈βπY␈↓βIn␈αthe␈αfollowing␈αthree␈αcommands,␈αthe␈αleft␈αhalf␈αof␈↓ε␈αq␈↓β,␈αspecifies␈αa␈αbatch␈αof␈αfeatures,␈αand␈αthe␈αbits␈αin
␈↓ ↓H␈βλ↓␈↓βthe␈α
right␈α
half␈α
specify␈α
which␈α
features␈α
in␈α
that␈α
batch␈α
are␈α
affected␈α
(or␈α
in␈α
the␈α
case␈αof␈αthe␈αfirst␈αcommand,
␈↓ ↓H␈βλ∨␈↓βwhich␈α
are␈α
on,␈α
since␈α
all␈α
are␈α
affected␈α
one␈α
way␈α
or␈α
the␈α
other␈α
in␈α
this␈α
obsolete␈α
command).␈α_Thus␈αyou␈αmay
␈↓ ↓H␈βλ=␈↓βchange␈αas␈αmany␈αfeatures␈αin␈αone␈αbatch␈αat␈αa␈αtime,␈αbut␈αmust␈αuse␈αseparate␈αcommands␈αfor␈αeach␈α
batch.␈α∀The
␈↓ ↓H␈βλ[␈↓βcommands␈αare␈αgiven␈αfirst,␈αthen␈αthe␈α
descriptions␈α
of␈α
each␈α
feature,␈α
with␈α
the␈α
batch␈α
number␈α
and␈α
bit␈α
position
␈↓ ↓H␈βλy␈↓β(mask)␈α∞that␈α∞correspond␈α∞to␈α∞it.␈α~All␈α
bits␈α
are␈α
initially␈α
zero,␈α
and␈α
bits␈α
not␈α
mentioned␈α
below␈α
should␈α
be␈α
left
␈↓ ↓H␈β ↔␈↓βthat␈α
way␈α
to␈α
allow␈α
for␈α
new␈α
bits␈α
that␈α
will␈α
be␈α
defined␈α
later.
␈↓ ↓H␈β 4␈↓1␈↓∂`␈↓εq␈↓β␈↓ ββ(U)␈α--␈αSet␈αspecial␈αfeatures␈αhalfword␈αfrom␈αright␈αhalf␈αof␈↓ε␈α
q␈↓β␈α
--␈α
This␈α
command
␈↓ ββ␈β \␈↓βis␈α∂not␈α∂recommended␈α∂because␈α∂it␈α∂clobbers␈α∂bits␈α∞you␈α∞may␈α∞have␈α∞set␈α∞earlier
␈↓ ββ␈β z␈↓βand␈α
forgotten.
␈↓ ↓H␈β
↔␈↓1␈↓∂⊂␈↓εq␈↓β␈↓ ββ(U)␈α--␈αUse␈αright␈αhalf␈αof␈↓ε␈αq␈↓β.␈αas␈αa␈αmask␈αfor␈αturning␈αon␈αbits,␈αleaving␈αthe␈αrest
␈↓ ββ␈β
?␈↓βunaffected.
␈↓ ↓H␈β
\␈↓1␈↓∂⊃␈↓εq␈↓β␈↓ ββ(U)␈α
--␈α
Use␈α
right␈α
half␈α
of␈↓ε␈α
q␈↓β.␈α
as␈α
a␈α
mask␈α
for␈α
turning␈α
off␈α
bits␈α
(a␈α
"1"␈α
in␈α
the␈α
mask
␈↓ ββ␈β∧␈↓βturns␈α∂the␈α∂bit␈α∂off,␈α∂the␈α∂same␈α∞as␈α∞the␈α∞ANDCM␈α∞instruction),␈α∞leaving␈α∞the␈α∞rest
␈↓ ββ␈β"␈↓βunaffected.
␈↓ ↓H␈β@␈↓βBefore␈α⊃you␈α⊃use␈α⊃any␈α⊃of␈α⊃the␈α⊃above␈α⊃commands␈α⊃to␈α⊃change␈α⊃these␈α⊃flags,␈α⊃all␈α⊃the␈α⊃bits␈α⊂listed␈α⊂below␈α⊂are
␈↓ ↓H␈β↑␈↓βnot-enabled␈α(zero␈αbit).␈α⊗Generally␈αit␈αis␈αadvisable␈αto␈αturn␈αthese␈αbits␈αon␈αat␈αthe␈αbeginning␈αand␈αleave␈αthem
␈↓ ↓H␈β|␈↓βon,␈αhowever␈αit␈αis␈αfrequently␈α
useful␈α
to␈α
toggle␈α
them␈α
on␈α
and␈α
off.␈α∀If␈α
funny␈α
things␈α
can␈α
happen␈α
with␈α
toggling,
␈↓ ↓H␈β~␈↓βI␈α
will␈α
try␈α
to␈α
warn␈α
you␈α
in␈α
the␈α
description␈α
below␈α
--␈α
please␈α
excuse␈αthe␈αsloppy␈α(unjustified)␈αappearance,
␈↓ ↓H␈β8␈↓βthe␈α
text␈αwas␈αcopied␈αfrom␈αthe␈αsource␈αprogram␈αfor␈αPOX␈αwith␈αvery␈αlittle␈αediting.␈α_also,␈αthe␈α"$"␈αcharacter
␈↓ ↓H␈βU␈↓βrather␈α
than␈α
"␈↓1␈↓β"␈α
represents␈α
the␈α
brick␈α
character␈α
below.
␈↓ α_␈βu␈↓βI␈α∂recommend␈α∂that␈α∂all␈α∂newly-created␈α∂POX␈α∂files␈α∂turn␈α∂on␈α∞VERSMT,␈α∞VERXX1␈α∞and␈α∞VE1QES␈α∞near␈α∞the
␈↓ ↓H␈β
∪␈↓βstart␈α
of␈α
the␈α
file.␈α~Also␈αdesirable␈αmost␈αof␈αthe␈αtime␈αare␈αVERSIM,␈αVERSGK,␈αVERREM,␈αVERRHT,␈αVERESC␈αand
␈↓ ↓H␈β
0␈↓βVE1OPN.␈α≡All␈α∂of␈α∂these␈α∂can␈α∂be␈α∞turned␈α∞on␈α∞by:␈↓␈α≤1␈↓∂⊂'0302454;␈↓1␈↓∂⊂'1000003;␈↓β␈α∞at␈α∞the␈α∞very␈α∞beginning␈α∞of
␈↓ ↓H␈β
P␈↓βyour␈α
source␈α
file.␈α∀I␈α
recommend␈α
against␈α
using␈α
VER56P,␈α
VERREG␈α
and␈α
VERIDC.
␈↓ ↓H␈β
n␈↓∂; THESE BITS ARE IMPLEMENTED CURRENTLY:
␈↓ α(␈β∞(␈↓Batch (left half of ␈↓εq␈↓) = 0
␈↓ ↓H␈β∞P␈↓∂VERHHR←←000001␈↓ βH;ENABLE H AND h HEIGHT OF FONT PSEUDO-REGISTER -- Has its effect at
␈↓ ↓H␈β∞n␈↓∂ the moment you attempt using any command that takes a register as an argument,
␈↓ ↓H␈β∂␈↓∂ and you specify register "H" or "h".
␈↓ ↓H␈β∂*␈↓∂VERTRC←←000002␈↓ βH;TRACE AND OTHER TTY OUTPUT
␈↓ π␈↓α 23␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 24␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓∂VERSIM←←000004␈↓ βH;ENABLE <LF> SIMULATOR, ENABLE SIDE EFFECT OF REGISTER ";"
␈↓ ↓H␈β↓f␈↓∂ ;This simulates XGPSER enough to know at all times where it is on the page
␈↓ ↓H␈βα∧␈↓∂ ;It allows sorting each output thing according to Y0 so that XGPSER doesn't complain
␈↓ α_␈βα"␈↓βWARNING␈α∞--␈α∞This␈α∞bit␈α∞can␈α∞not␈α∞be␈α∞turned␈α∞off␈α∞at␈α∞all␈α∞(I␈α∞haven't␈α∞implemented␈α∞it␈α∞because␈α∞it␈α
doesn't
␈↓ ↓H␈βα@␈↓βseem␈α
like␈α
a␈α
good␈α
idea␈α
for␈α
several␈α
reasons)␈α
--␈α
Regarding␈α
turning␈α
it␈α
on,␈α
if␈α
you␈α
turn␈α
it␈α
on␈α
after␈αone␈αor
␈↓ ↓H␈βα↑␈↓βmore␈αpages␈αof␈αtext␈αhave␈αbeen␈αoutput,␈αthe␈αbottom␈αmargin␈α
will␈α
probably␈α
get␈α
screwed␈α
up␈α
--␈α
If␈α
you␈α
turn␈α
it
␈↓ ↓H␈βα|␈↓βon␈α
after␈α
text␈α
has␈α
been␈αoutput␈αon␈αthe␈αcurrent␈αpage,␈αthe␈αxspooler␈αwill␈αprobably␈αabort␈αdue␈αto␈αincorrect
␈↓ ↓H␈ββ~␈↓βY0␈αsequence␈α--␈αIn␈αconclusion,␈αyou␈αshould␈αturn␈αon␈αthe␈αsimulator␈αbefore␈αany␈αtext␈αis␈αoutput␈αat␈αall,␈αor␈αnot
␈↓ ↓H␈ββ8␈↓βat␈α
all.
␈↓ α_␈ββU␈↓βWARNING␈α--␈αYou␈αmust␈αdo␈αat␈αleast␈αone␈↓␈α1␈↓∂F␈↓β...␈αafter␈αturning␈αon␈αthe␈αsimulator␈αbefore␈αoutputting␈αany
␈↓ ↓H␈ββu␈↓βtext,␈α
or␈α
you␈α
will␈α
get␈α
screwed.
␈↓ ↓H␈β∧∪␈↓∂VERSGK←←000010␈↓ βH;Double-gap after . : etc. if double-space input
␈↓ ↓H␈β∧1␈↓∂VER56P←←000020␈↓ βH;ENABLE $5 AND $6 INITIALIZATION WITH TLIM1 AND BLIM1 DATA --
␈↓ ↓H␈β∧O␈↓∂ See BUG#2 -- Takes effect when a $M command is executed on a font not previously
␈↓ ↓H␈β∧m␈↓∂ loaded.
␈↓ ↓H␈β¬␈↓∂VERREM←←000040␈↓ βH;ENABLE REM'S SYNTAX FOR MACROS WITH ARGS DEFINITIONS -- Takes
␈↓ ↓H␈β¬)␈↓∂ effect when the macro is being defined.
␈↓ ↓H␈β¬G␈↓∂VEREVE←←000100␈↓ βH;ENABLE EVERYPAGE MACRO
␈↓ ↓H␈β¬c␈↓∂ ;If on, once on every new page of output it simulates ␈↓1␈↓∂!EVERYPAGE; occurring in
␈↓ ↓H␈βεα␈↓∂ your input file (at the first occurrance of <CR><LF> or ␈↓1␈↓∂;...<CR><LF> while at
␈↓ ↓H␈βε"␈↓∂ pass-as-is mode, or a few other places -- If you want this to happen on the page
␈↓ ↓H␈βε>␈↓∂ where you turn on the feature, you will have to do ␈↓1␈↓∂!EVERYPAGE; yourself once there.
␈↓ ↓H␈βε↑␈↓∂ WARNING!! -- Because of the fact that this macro is called at an almost-random
␈↓ ↓H␈βε|␈↓∂ location with respect to your input file, it must be constructed so as to
␈↓ ↓H␈βπ~␈↓∂ avoid clobbering anything (registers or input syntax, usually) that might
␈↓ ↓H␈βπ8␈↓∂ confuse the main processing of the file. Any registers used should be saved
␈↓ ↓H␈βπV␈↓∂ and restored using push/pop commands. Watch out for $ $N $; $, etc. which
␈↓ ↓H␈βπt␈↓∂ will cause strange and confusing destruction of your world if the terminating
␈↓ ↓H␈βλ∩␈↓∂ <crlf> <ff> etc. is missing from your everypage macro.
␈↓ ↓H␈βλ0␈↓∂;000000 000200␈↓ βH;(RESERVED FOR FUTURE COLIST-KLUDGE)
␈↓ ↓H␈βλN␈↓∂VERRHT←←000400␈↓ βH;ENABLE MODIFIED WAY TO PARSE ARGS THAT HAVE NESTING CHARS IN THEM
␈↓ ↓H␈βλl␈↓∂ (i.e. anything inside nesting inside nesting is quoted, etc., see
␈↓ ↓H␈β
␈↓∂ the earlier section "Detailed examples of argument evaluation")
␈↓ ↓H␈β (␈↓∂ Takes effect when a parameter is being parsed prior to being bound to dummy arg.
␈↓ ↓H␈β F␈↓∂VERREG←←001000␈↓ βH;$'<OCTAL>; OLD WAY -- 177 ALWAYS EVEN IF IT DEFEATS POX QUIETLY
␈↓ ↓H␈β d␈↓∂VERSMT←←002000␈↓ βH;$'<OCTAL>; NEW WAY -- 177 ONLY IF NEEDED
␈↓ ↓H␈β
α␈↓∂VERIDC←←004000␈↓ βH;SPECIAL REQUEST BY RHT, NO ERROR IF ; OMITTED AFTER MACRO CALL
␈↓ ↓H␈β
␈↓∂VERPAG←←010000␈↓ βH;AUTOMATIC PAGE CHANGE W/OUT FIRST WARNING, TEXT AND $O OUTPUT OVL
␈↓ ↓H␈β
>␈↓∂VERBG1←←020000␈↓ βH;ENABLES BUG#1 WARNING MESSAGE (TEMPORARY)
␈↓ ↓H␈β
\␈↓∂VERLCS←←040000␈↓ βH;CHANGE WAY TABS IN PASSIS ARE DONE TO 1/10 OF RMAR-LMAR * INPUT COL
␈↓ ↓H␈β
z␈↓∂ WARNING -- Only tabs in input file do the right thing. A counter
␈↓ ↓H␈β_␈↓∂ keeps track of what column in the input file we are at, and
␈↓ ↓H␈β6␈↓∂ rounds up to multiple of 8 when a tab occurs in the input FILE
␈↓ ↓H␈βT␈↓∂ (not in a macro expansion patch). Thus any text just after a tab
␈↓ ↓H␈βr␈↓∂ in the input file will appear on the output page in approximately
␈↓ ↓H␈β⊂␈↓∂ the same column on the XGP. Note that a tab in a macro will
␈↓ ↓H␈β.␈↓∂ activate this mechanism, but it will go to a position corresponding
␈↓ ↓H␈βL␈↓∂ to the input FILE rather than what that file would have been with
␈↓ ↓H␈βj␈↓∂ the macros inserted in it. Note that the three low order bits
␈↓ ↓H␈β
λ␈↓∂ of the column counter are ignored also. A warning message
␈↓ ↓H␈β
&␈↓∂ will be generated if a tab is encountered in a macro while not at
␈↓ ↓H␈β
D␈↓∂ a multiple of 8 columns, until such time as
␈↓ ↓H␈β
b␈↓∂ an implemtation is found that satisfies everyone.
␈↓ ↓H␈β∞␈↓∂VERESC←←100000␈↓ βH;CAUSES BRICK CHAR IN MACRO BODY TO BE SAME AS ⊗$⊗ FEATURE, i.e.
␈↓ ↓H␈β∞≡␈↓∂ the <BRICK> token rather than the character itself -- This bit is tested at the
␈↓ ↓H␈β∞<␈↓∂ time the macro body is being parsed and associated with the macro name
␈↓ ↓H␈β∞X␈↓∂(at define-time during execution of the ␈↓1␈↓∂8 or ␈↓1␈↓∂∞ command).
␈↓ ↓H␈β∞x␈↓βWARNING!!␈α(75␈αAUG␈α03)␈α--␈αThe␈αtoken␈αin␈αthe␈αmacro␈αbody␈αis␈αreplaced␈αby␈αthe␈αcurrent␈αbrick␈αcharacter␈αat
␈↓ ↓H␈β∂⊗␈↓βthe␈α
time␈α
the␈α
token␈α
is␈α
rescanned␈α
as␈α
input,␈α
not␈α
earlier␈α
when␈α
the␈α
macro␈α
body␈α
is␈α
patched␈α
into␈α
the␈α
input
␈↓ ↓H␈β∂4␈↓βstream,␈α
so␈α
if␈α
your␈α
brick␈α
character␈α
at␈α
macro-define␈α
time␈α
was␈α
\␈α
and␈αthe␈αmacro␈αbody␈αincludes␈α\|$...$|\␈αit
␈↓ π␈↓α 24␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 25␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βwill␈α
be␈α
compiled␈α
as␈α
<brick>|$...$|<brick>␈α
then␈α
if␈α
when␈α
you␈α
call␈αit␈α\␈αis␈αthe␈αbrick␈αcharacter,␈αthe␈α<brick>|$
␈↓ ↓H␈β↓f␈↓βwill␈αbe␈αconverted␈αto␈α\|$␈αand␈α$␈αwill␈αbe␈αyou␈αbrick␈αcharacter␈αfor␈α...,␈αthen␈α$|<brick>␈αwill␈α
be␈α
converted␈α
to␈α
$|$
␈↓ ↓H␈βα∧␈↓βinstead␈αof␈αthe␈α$|\␈αyou␈αprobably␈αintended,␈αand␈αyou␈αwill␈αtotally␈αlose␈α
just␈α
like␈α
this␈α
POX␈α
writeup␈α
did␈α
before
␈↓ ↓H␈βα"␈↓βI␈α
located␈α
this␈α
subtle␈α
bug␈α
(in␈α
this␈α
writeup)␈α
and␈α
fixed␈α
it.␈α~If␈α
you␈α
want␈α
the␈α
effect␈α
desired␈α
(whatever␈αthe
␈↓ ↓H␈βα@␈↓βbrick␈αchar␈αis,␈αchange␈αit␈αto␈α$,␈α
then␈α
back␈α
again)␈α
you␈α
can␈α
probably␈α
make␈α
it␈α
work␈α
by␈α
having␈α
your␈α
macro␈α
call
␈↓ ↓H␈βα↑␈↓βEVAL␈α∞with␈α∞a␈α∞quoted␈α∞string␈α∞containing␈α
the␈α
brick␈α
character,␈α
thereby␈α
forcing␈α
both␈α
<brick>␈α
tokens␈α
to␈α
be
␈↓ ↓H␈βα|␈↓βreplaced␈α∩by␈α∩the␈α∩same␈α∩brick␈α∩character␈α∩at␈α∩argument-binding␈α∩(arg␈α∩to␈α∩EVAL)␈α∩time␈α⊃and␈α⊃used␈α⊃in␈α⊃both
␈↓ ↓H␈ββ~␈↓βinstances.␈α∀Note␈α
that␈α
this␈α
subtle␈α
problem␈α
happens␈α
the␈α
same␈α
with␈α
the␈α
old␈α
⊗$⊗␈α
syntax␈α
in␈α
macro␈α
bodies.
␈↓ ↓H␈ββ8␈↓∂VERXX1←←200000␈↓ βH;IMPLEMENTS CORRECT OUTPUT-OVERLAY AS OF 1975.JUL/AUG
␈↓ ↓H␈ββV␈↓∂VERVER←←400000␈↓ βH;ALLOWS TYPEOUT OF SPECIAL FEATURES ON/OFF
␈↓ α(␈β∧⊂␈↓Batch (left half of ␈↓εq␈↓) = 1
␈↓ ↓H␈β∧8␈↓∂VE1QES←←000001␈↓ βH;SUPPRESSES CRUFTY OLD ␈↓11␈↓∂ "FEATURE"
␈↓ ↓H␈β∧X␈↓∂VE1OPN←←000002␈↓ βH;OUTPUT PAGE NUMBERS TYPED
␈↓ ↓H␈β∧v␈↓∂VE1RWG←←000004␈↓ βH;Output overlay on same line as text
␈↓ ↓H␈β¬∀␈↓∂VE1TSP←←000010␈↓ βH;Erroneous tab in middle of justified line treated as space
␈↓ ↓H␈β¬2␈↓∂VE1LES←←000020␈↓ βH;Suppress side-effect of comma delimiting macro arguments
␈↓ ↓H␈β¬P␈↓∂VE1FAI←←000040␈↓ βH;Fail error mode, don't stop on errors
␈↓ ββ␈βε
␈↓βFor␈αexample,␈αthe␈αcommand␈↓␈α1␈↓∂⊂'446;␈↓β␈αwill␈αturn␈α
on␈α
the␈α
simulator␈α
and␈α
enable
␈↓ ββ␈βε*␈↓βthe␈αfull␈α
REM␈α
macro-with-argument␈α
syntax␈α
with␈α
ability␈α
to␈α
quote␈α
portions␈α
of
␈↓ ββ␈βεH␈↓βarguments␈α⊂and␈α⊂cause␈α⊂trace␈α⊂output␈α⊂to␈α⊂appear␈α⊂on␈α∂your␈α∂terminal␈α∂as␈α∂POX
␈↓ ββ␈βεe␈↓βruns.␈α≤The␈α∞command␈↓␈α∞1␈↓∂⊂'1000001;␈↓β␈α∞will␈α
turn␈α
on␈α
the␈α
bit␈α
that␈α
deletes␈α
the
␈↓ ββ␈βπ∧␈↓11␈↓β␈α⊃command.␈α"At␈α⊃a␈α⊃later␈α⊃time␈↓␈α⊃1␈↓∂⊃'2;␈↓β␈α⊃will␈α⊂turn␈α⊂off␈α⊂the␈α⊂trace␈α⊂without
␈↓ ββ␈βπ$␈↓βaffecting␈α!the␈α!simulator␈α or␈α macro-with-arguments␈α or␈α any␈α other
␈↓ ββ␈βπB␈↓βspecial-feature␈α
bits.
␈↓ ∧3␈βπ⎇␈↓REMARKS ON USING THE POX PROGRAM
␈↓ α_␈βλ ␈↓βIf␈αyou␈αhave␈αthe␈αVERTRC␈αflag␈αenabled␈α(see␈αthe␈↓␈α1␈↓∂⊂␈↓β␈αcommand␈αet.al.)␈α⊗various␈α
random␈α
things␈α
will␈α
get
␈↓ ↓H␈βλ?␈↓βtyped␈αout␈αwhile␈αPOX␈αis␈αrunning,␈αincluding␈αtext␈αin␈αyour␈αinput␈αfile␈αappearing␈αafter␈↓␈α1␈↓∂;␈↓β␈αand␈↓␈α1␈↓∂,␈↓β␈αcommands.
␈↓ ↓H␈βλ←␈↓βFor␈α⊂the␈α⊂most␈α⊂part␈α⊂you␈α⊂may␈α⊂ignore␈α⊂them.␈α If␈α⊂you␈α∂really␈α∂want␈α∂to␈α∂know␈α∂about␈α∂them,␈α∂ask␈α∂REM␈α∂about
␈↓ ↓H␈βλ⎇␈↓βparticular␈αones,␈αor␈αlook␈α
in␈α
the␈α
source␈α
program␈α
for␈α
POX.␈α∀These␈α
trace␈α
outputs␈α
are␈α
all␈α
subject␈α
to␈α
purge␈α
at
␈↓ ↓H␈β ≠␈↓βany␈α
time␈α
as␈α
POX␈α
develops.
␈↓ α_␈β 9␈↓βTo␈α∪enable␈α∪some␈α∪of␈α∪the␈α∩new␈α∩features␈α∩implemented␈α∩after␈α∩1974␈α∩Nov␈α∩which␈α∩conflict␈α∩with␈α∩old
␈↓ ↓H␈β V␈↓βfeatures,␈α⊂special␈α⊂flags␈α⊂must␈α⊂be␈α⊂set␈α⊂earlier␈α⊂in␈α⊂your␈α⊂input␈α⊂file␈α⊂(see␈α⊂the␈↓␈α⊂1␈↓∂⊂␈↓β␈α⊂command␈α⊂et.al.)␈α∨--␈α∂The
␈↓ ↓H␈β v␈↓βdefinition␈α
of␈α
register␈↓∂␈α
∀␈↓β␈α
as␈α
the␈α
accumulator,␈α
and␈α
the␈α
newly-implemented␈α
side-effects␈α
of␈α
q-register␈α"␈↓∂,␈↓β"
␈↓ ↓H␈β
∀␈↓βare␈α∂automatically␈α∂in␈α∂effect␈α∂and␈α∂can␈α∂not␈α∞be␈α∞inhibited␈α∞except␈α∞by␈α∞using␈α∞an␈α∞old␈α∞version␈α∞of␈α∞POX␈α∞(before
␈↓ ↓H␈β
2␈↓β74.DEC).
␈↓ ¬Q␈β
m␈↓Backtrace package
␈↓ α_␈β⊂␈↓βThere␈αare␈α5␈αkinds␈αof␈αerrors␈αthat␈αcan␈αoccur␈αwhile␈αPOX␈αis␈αcompiling␈αa␈αtext␈αfile:␈α⊗(1)␈αE40␈α=␈αbugs␈αin
␈↓ ↓H␈β.␈↓βthe␈αuser␈αfile␈αfrom␈αwhich␈αit␈αmight␈αbe␈αpossible␈αto␈αcontinue␈αif␈αthe␈αparser␈α
is␈α
correctly␈α
synchronized␈α
or␈α
if␈α
it
␈↓ ↓H␈βL␈↓βwill␈αre-synchronize␈αitself␈αsoon␈αenough␈αto␈αbe␈αable␈αto␈αdo␈αthe␈αrest␈αof␈αthe␈αfile␈αmostly␈αcorrectly.␈α⊗(2)␈αE40F
␈↓ ↓H␈βj␈↓β=␈α⊃"fatal"␈α⊃bugs␈α⊃in␈α⊃the␈α⊃user␈α⊃file␈α⊃from␈α⊃which␈α⊃continuation␈α⊃is␈α⊃not␈α⊃possible␈α⊂but␈α⊂context␈α⊂information␈α⊂is
␈↓ ↓H␈βλ␈↓βavailable␈αand␈αmight␈αbe␈αhelpful␈αto␈αthe␈αuser␈α(3)␈αERRF␈α=␈αerrors␈αcaused␈αby␈αthe␈αinput␈αfile␈αthat␈αhave␈αwiped
␈↓ ↓H␈β&␈↓βout␈αall␈α
context␈α
information␈α
--␈α
This␈α
usually␈α
happens␈α
at␈α
the␈α
end␈α
of␈α
a␈α
file␈α
while␈α
inside␈α
the␈α
mode␈α
of␈α
building
␈↓ ↓H␈βD␈↓βup␈αthe␈αbody␈αof␈αa␈αmacro␈αor␈αmacro-argument,␈αcaused␈αby␈αa␈αmissing␈αparenthesis␈αsomewhere.␈α∃(4)␈α
FATAL␈α
=
␈↓ ↓H␈βb␈↓βbugs␈αin␈αPOX␈αin␈αcode␈αthat␈αis␈αin␈αa␈αstate␈αof␈αdebugging␈αand␈αstill␈αhas␈αASCII␈αwarning␈αmessages␈αfor␈αdetected
␈↓ ↓H␈β
␈↓βerrors␈α∂(5)␈α∂INTERR␈α∂=␈α∂internal␈α∂errors␈α∂detected␈α∂in␈α∂POX␈α∂program,␈α∂in␈α∂code␈α∂that␈α∂shouldn't␈α∂have␈α∂anything
␈↓ ↓H␈β
≡␈↓βwrong␈α
with␈α
it,␈α
probably␈α
core␈α
clobberage␈α
rather␈α
than␈α
POX␈α
bugs.
␈↓ α_␈β
<␈↓βIn␈αE40␈αerrors␈αthe␈αerror␈αmessage␈αis␈αtyped␈αout,␈αthen␈αthe␈αcurrent␈αlevel␈αof␈αmacro␈αexpansion␈αor␈αfile
␈↓ ↓H␈β
Z␈↓βinput␈αis␈αtyped␈αout␈αin␈αabout␈αthe␈αsame␈αway␈αas␈αthe␈αSAIL␈αcompiler␈αannounces␈αcompilation␈αerrors,␈αthen␈αthe
␈↓ ↓H␈β
x␈↓βuser␈α
has␈α
the␈α
following␈α
options:
␈↓ α_␈β∞∃␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α⊂C␈↓β␈α⊂to␈α⊂close␈α⊂the␈α⊂main␈α⊂output␈α⊂(.XGP)␈α⊂file,␈α⊂patch␈α⊂in␈α⊂the␈α⊂list␈α⊂of␈α∂fonts␈α∂used␈α∂so-far,␈α∂and␈α∂exit
␈↓ ↓H␈β∞4␈↓βimmediately␈α
as␈α
if␈α
the␈α
input␈α
file␈α
had␈α
ended␈α
with␈α
no␈α
error;
␈↓ α_␈β∞Q␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α⊃P␈↓β␈α⊃to␈α⊃proceed␈α⊃with␈α⊃the␈α⊃program␈α⊃--␈α⊃when␈α⊂proceeding␈α⊂from␈α⊂illegal␈α⊂brick␈α⊂command␈α⊂while
␈↓ ↓H␈β∞p␈↓βbinding␈αargument␈αto␈αmacro,␈αthe␈αtext␈αof␈αthe␈αillegal␈αcommand␈αis␈αpassed␈αunevaluated␈αto␈αthe␈αargument␈αjust
␈↓ ↓H␈β∂∞␈↓βas␈α
if␈α
it␈α
had␈α
been␈α
quoted;
␈↓ α_␈β∂+␈↓β→␈↓#↓ ␈↓#Hit␈↓¬␈α∂<ctrl><meta>␈↓∂P␈↓β␈α∂to␈α∂clobber␈α∂the␈α∂error-call␈α∂to␈α∂a␈α∂NO-OP␈α∞and␈α∞proceed.␈α≤Thus␈α∞if␈α∞the␈α∞same␈α∞error
␈↓ π␈↓α 25␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 26␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βhappens␈α
no␈α
message␈α
will␈α
be␈α
generated␈α
and␈α
it␈α
will␈α
proceed␈α
as␈α
if␈α
you␈α
had␈α
typed␈↓∂␈α
P␈↓β␈α
each␈α
time;
␈↓ α_␈β↓e␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α
R␈↓β␈α
to␈α
remember␈α
the␈α
current␈α
location␈α
in␈α
the␈α
source␈α
file␈α
and␈α
proceed;
␈↓ α_␈βαβ␈↓β→␈↓#↓ ␈↓#Hit␈↓¬␈α
<ctrl><meta>␈↓∂R␈↓β␈α
to␈α
remember,␈α
clobber,␈α
and␈α
proceed;
␈↓ α_␈βα!␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α
Q␈↓β␈α
to␈α
perform␈α
skip-return␈α
instead␈α
of␈α
direct␈α
return␈α
as␈α
in␈α
the␈↓∂␈α
P␈↓β␈α
command.␈α~In␈α
places␈α
where
␈↓ ↓H␈βα@␈↓βthis␈αis␈αimplemented␈αit␈αcauses␈αthe␈αspecial␈αmode␈α(such␈αas␈αjustify)␈αto␈αbe␈αleft␈αimmediately␈αbefore␈αresuming
␈↓ ↓H␈βα↑␈↓βprocessing␈α
of␈α
input;
␈↓ α_␈βα{␈↓β→␈↓#↓ ␈↓#Hit␈↓¬␈α⊂<ctrl><meta>␈↓∂Q␈↓β␈α⊂to␈α⊂clobber␈α⊂the␈α⊂error␈α∂call␈α∂to␈α∂a␈α∂CAIA␈α∂(skip␈α∂always)␈α∂instruction,␈α∂then␈α∂perform
␈↓ ↓H␈ββ~␈↓βskip-return.␈α≤This␈α∞command␈α∞is␈α∞provided␈α∞only␈α∞for␈α∞experienced␈α∞users␈α∞who␈α∞are␈α∞willing␈α∞to␈α∞take␈α∞the␈α∞risk
␈↓ ↓H␈ββ8␈↓βinherent␈α
in␈α
this␈α
command;
␈↓ α_␈ββU␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α∞T␈↓β␈α∞to␈α∞pop␈α∞up␈α∞one␈α∞macro␈α∞level␈α∞and␈α∞do␈α∞a␈α∞context␈α∞display␈α
there␈α
too␈α
[the␈α
pop-up␈α
is␈α
for␈α
the
␈↓ ↓H␈ββt␈↓βdisplayed␈αoutput␈αonly,␈αit␈αdoesn't␈α
change␈α
the␈α
point␈α
where␈α
the␈α
program␈α
would␈α
resume␈α
if␈α
P␈α
were␈α
hit␈α
later]
␈↓ ↓H␈β∧∩␈↓β--␈αIf␈αyou␈αhave␈αpopped␈αup␈αto␈αan␈αactual␈αinput␈α
(DSK)␈α
file,␈α
or␈α
were␈α
there␈α
already,␈α
you␈α
can't␈α
pop␈α
up␈α
further
␈↓ ↓H␈β∧0␈↓βbecause␈α
implementating␈α
that␈α
capability␈α
in␈α
an␈α
obvious␈α
way␈α
WOULD␈α
clobber␈α
the␈α
context;
␈↓ α_␈β∧M␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈αE␈↓β␈αto␈αreturn␈αto␈αdisplay␈αeditor␈αat␈αthis␈αlocation␈αin␈αthe␈αinput␈αfile.␈α⊗The␈αonly␈αway␈αthat␈αcurrently
␈↓ ↓H␈β∧l␈↓βexists␈αfor␈αgetting␈αfrom␈αE␈αback␈αto␈αPOX␈αautomatically␈αwith␈αthe␈αcorrect␈αtop-level␈αfile,␈αis␈αto␈αhave␈αa␈αdo␈αfile
␈↓ ↓H␈β¬
␈↓βthat␈αsays:␈↓∂␈α_R␈αPOX↔←␈↓¬<FILE>␈↓∂↔␈↓β␈αand␈αto␈αtype␈αto␈αthe␈αsystem␈↓∂␈αDO␈↓¬␈α<DO␈αFILE␈αNAME><CR><LF>␈↓β␈αthe␈αfirst␈αtime␈αyou␈αrun
␈↓ ↓H␈β¬(␈↓βPOX,␈α
then␈α
afterward␈α
to␈α
use␈α
the␈α
<CTRL><META>␈↓∂X␈α
G␈↓¬<CR>␈↓β␈α
command␈α
in␈α
E;
␈↓ α_␈β¬E␈↓β→␈↓#↓ ␈↓#Hit␈↓¬␈α
<ctrl><meta>␈↓∂E␈↓β␈α
to␈α
return␈α
to␈α
display␈α
editor␈α
at␈α
the␈α
location␈α
you␈α
had␈α
it␈α
remember␈α
earlier;
␈↓ α_␈β¬c␈↓β→␈↓#↓ ␈↓#Hit␈↓∂␈α⊂D␈↓β␈α⊂to␈α⊂go␈α⊂into␈α⊂debug␈α⊂mode␈α⊂(i.e.␈α⊂RAID).␈α⊂Hit␈α⊂<ctrl>P␈α⊂to␈α⊂return␈α⊂from␈α⊂RAID␈α⊂to␈α⊂the␈α⊂backtrace
␈↓ ↓H␈βεα␈↓βpackage;
␈↓ α_␈βε∨␈↓β→␈↓#↓ ␈↓#Hit␈α<CALL>␈αto␈αdo␈αanything␈αelse,␈αlike␈α
to␈α
edit␈α
with␈α
SOS,␈α
or␈α
to␈α
give␈α
up␈α
entirely,␈α
or␈α
to␈α
"␈↓∂F␈α
DSK␈↓β"␈α
then
␈↓ ↓H␈βε>␈↓βsee␈α
what␈α
POX␈α
outputted␈α
before␈α
the␈α
error␈α
occurrred.
␈↓ α_␈βε\␈↓βFrom␈α
E40F␈α
errors␈α
all␈α
the␈α
above␈α
are␈α
available␈α
except␈α
those␈α
which␈α
involve␈α
proceeding.
␈↓ α_␈βεz␈↓βIf␈α
you␈α
want␈αto␈αexamine␈αyour␈αoutput␈αfile␈αaccording␈αto␈αhow␈αthe␈αXGP␈αservice␈αparses␈αit,␈↓∂␈αR␈αXGPTYP␈↓β.
␈↓ ↓H␈βπ_␈↓βFor␈αinvestigating␈αnew␈αbugs␈αin␈αa␈αlarge␈αfile,␈αa␈α
useful␈α
technique␈α
is␈α
to␈α
run␈α
XGPTYP␈α
on␈α
both␈α
the␈α
output␈α
from
␈↓ ↓H␈βπ6␈↓βa␈α∂backup␈α∂working␈α∂version␈α∂of␈α∂your␈α∂file␈α∂and␈α∂the␈α∂output␈α∂from␈α∂the␈α∞version␈α∞you␈α∞are␈α∞debugging,␈α∞then␈↓∂␈α∞R
␈↓ ↓H␈βπT␈↓∂SRCCOM␈↓β␈α
and␈↓∂␈α
TTY:←␈↓β<OLD␈α
XGPTYP␈α
LISTING>␈↓∂,␈↓β<NEW␈α
XGPTYP␈α
LISTING>.
␈↓ α_␈βπr␈↓βIf␈α
your␈α
file␈α
looks␈α
ok␈α
but␈α
you␈α
get␈α
the␈α
message␈↓∂␈α
XGPSER␈αMISSED␈αIT.␈↓β␈α_then␈αtry␈αappending␈αto␈αthe
␈↓ ↓H␈βλ⊂␈↓βend␈α
of␈α
the␈↓∂␈αXSPOOL␈↓β␈αcommand␈αthe␈αswitch␈↓∂␈α/NTNODE=31␈↓β,␈αthen␈αif␈αit␈αstill␈αdoesn't␈αwork␈αdiscuss␈αit␈αwith␈αRWG
␈↓ ↓H␈βλ.␈↓βor␈α
REG␈α
who␈α
are␈α
experts␈α
at␈α
this.
␈↓ β`␈βλi␈↓Known Bugs in POX (Referred-to earlier in writeup)
␈↓ α_␈β ␈↓βBUG#1␈α
--␈α
[Fixed␈α
1975␈α
MAY/JUN]
␈↓ α_␈β H␈↓βBUG#2␈α∂--␈α∂Font␈α∂FORN25␈α∂and␈α∂other␈α∂fonts␈α∞with␈α∞funny␈α∞width␈α∞characters␈α∞cause␈α∞a␈α∞fatal␈α∞error,␈α∞and
␈↓ ↓H␈β e␈↓βparameters␈α
5,6␈α
don't␈α
usually␈α
work␈α
correctly.␈α~[new␈α
bug␈α
since␈↓␈α
1␈↓∂5␈↓β␈α
and␈↓␈α
1␈↓∂6␈↓β␈α
were␈α
implemented,␈αthe␈αbad
␈↓ ↓H␈β
∧␈↓βcode␈α⊃has␈α⊃now␈α⊃been␈α⊂patched-around,␈α⊂so␈α⊂that␈α⊂normally␈α⊂no␈α⊂bug␈α⊂will␈α⊂occur␈α⊂but␈↓␈α⊂1␈↓∂5␈↓β␈α⊂and␈↓␈α⊂1␈↓∂6␈↓β␈α⊂will␈α⊂give
␈↓ ↓H␈β
#␈↓βincorrect␈αdata,␈αbut␈αif␈αyou␈αuse␈αthe␈↓␈α1␈↓∂⊂'20;␈↓β␈αswitch␈αyou␈αtake␈αyour␈αchances␈α--␈αsomeday␈αthe␈αcode␈αwill␈αbe
␈↓ ↓H␈β
C␈↓βreally␈α⊃fixed.]␈α"--␈α⊃1976.JAN.03␈α⊃I␈α⊃haven't␈α⊃changed␈α⊃anything␈α⊃but␈α⊃the␈α⊃fatal␈α⊃error␈α⊃no␈α⊃longer␈α⊂happens,
␈↓ ↓H␈β
a␈↓βperhaps␈α
because␈α
FORN25␈α
has␈α
been␈α
changed␈α
recently.␈α∀The␈α
measurements␈α
are␈α
still␈α
wrong,␈α
however.
␈↓ α_␈β≥␈↓βBUG#3␈α--␈αAfter␈αsome␈α
errors␈α
that␈α
happen␈α
in␈α
justify␈α
mode,␈α
typing␈↓∂␈α
P␈↓β␈α
will␈α
hang␈α
in␈α
a␈α
loop␈α
in␈α
which␈α
an
␈↓ ↓H␈β;␈↓βerroneous␈α
error␈α
is␈α
repeatedly␈α
hit␈α
--␈α
someday␈α
I␈α
might␈α
figure␈α
out␈α
what␈α
is␈α
happening␈α
here.
␈↓ α_␈βw␈↓βBUG#4␈α∞--␈α∞(In␈α∞justify␈α∞mode,␈α∞N␈α∞blank␈α∞lines␈α∞in␈α∞input␈α∞generate␈α∞2N-1␈α∞blank␈α∞lines␈α
in␈α
output.)␈α~Fixed
␈↓ ↓H␈β∃␈↓β1975.DEC.31,␈α
please␈α
tell␈α
REM␈α
if␈α
you␈α
find␈α
a␈α
case␈α
where␈α
the␈α
bug␈α
still␈α
happens.
␈↓ ∧<␈βP␈↓NOTES (Referred-to earlier in writeup)
␈↓ ↓H␈βs␈↓β(NOTE␈α
1)␈α--␈αEverywhere,␈αexcept␈αat␈αthe␈αstart␈αof␈αthe␈αtop-level␈αfile,␈αPOX␈αreads␈αcharacters␈αin␈αthe␈αnormal
␈↓ ↓H␈β
⊃␈↓βsequence,␈α
and␈α
expects␈α
all␈α
syntax␈α
to␈α
be␈α
left-to-right␈αdecodeable.␈α_This␈αis␈αwhy,␈αfor␈αexample,␈αthe␈αstring
␈↓ ↓H␈β
.␈↓11␈↓∂!FOO;␈↓β,␈α
if␈α
seen␈α
in␈α
top-level␈αleft␈αcontext,␈αis␈αparsed␈αas␈α[quote␈αthe␈αescape␈αcharacter,␈αthen␈αoutput␈αthe
␈↓ ↓H␈β
N␈↓βstring␈α
"␈↓∂!FOO␈↓β"],␈α
rather␈α
than␈α
as␈α
[expand␈α
the␈α
macro␈↓∂␈α
FOO␈↓β␈α
then␈α
execute␈α
the␈α
command␈α
that␈α
results␈α
from␈αa
␈↓ ↓H␈β
l␈↓βbrick␈α
character␈α
in␈α
front␈α
of␈α
it].
␈↓ α_␈β∞
␈↓βHowever,␈α
at␈α
the␈α
start␈α
of␈α
the␈α
first␈α
top-level␈α
input␈α
file␈α
a␈α
special␈αinitialization␈αparser␈αis␈αemployed
␈↓ ↓H␈β∞(␈↓βthat␈αpre-reads␈αthe␈αfirst␈αtwo␈αcharacters␈αthen␈αdecides␈αwhat␈αto␈αdo␈αregarding␈αsyntax.␈α⊗The␈αfollowing␈αtable
␈↓ ↓H␈β∞F␈↓βshows␈αthe␈αfirst␈αcharacters␈αand␈αwhat␈αhappens␈α(here␈α"∀"␈αmeans␈αany␈αcharacter␈αnot␈αmentioned␈αpreviously
␈↓ ↓H␈β∞d␈↓βin␈α∀the␈α∀same␈α∀context,␈α∀"∀∀"␈α∀means␈α∀the␈α∀two␈α∀copies␈α∀of␈α∀some␈α∪character,␈α∪"∀∃"␈α∪means␈α∪two␈α∪different
␈↓ ↓H␈β∂α␈↓βcharacters):
␈↓ α_␈β∂ ␈↓∂C␈↓β␈α
--␈α
assumes␈α
this␈α
is␈α
a␈α
TV/E␈αdirectory␈α--␈αskips␈αeverything␈αuntil␈αASCII␈α'014␈α(Form␈αFeed)␈αis␈αseen,
␈↓ π␈↓α 26␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 27␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βthen␈α
prereads␈α
again␈α
using␈α
only␈α
the␈α
options␈α
below␈α
this␈α
one.
␈↓ α_␈β↓f␈↓∂∀|␈↓β␈α--␈αassumes␈αthis␈αis␈αa␈α"change␈αthe␈αescape␈αcharacter"␈αcommand␈α--␈αjumps␈αinto␈αthe␈αmiddle␈αof␈αthe
␈↓ ↓H␈βαβ␈↓1␈↓∂|␈↓¬<CH>␈↓β␈α
code␈α
--␈α
in␈α
my␈α
opinion,␈α
this␈α
is␈α
the␈α
preferred␈α
way␈α
to␈α
begin␈α
a␈α
POX␈α
file␈αand␈αall␈αnew␈αfiles␈αshould
␈↓ ↓H␈βα#␈↓βbegin␈α∂this␈α∂way␈α∂--␈α∂for␈α∞example,␈α∞your␈α∞file␈α∞might␈α∞begin␈α∞with␈↓∂␈α∞\|\\⊂'4;\M0KBD25;\M1BDR30;\;␈↓β␈α∞which
␈↓ ↓H␈βα@␈↓βwould␈α∞define␈↓∂␈α∞\␈↓β␈α
as␈α
the␈↓␈α
1␈↓β␈α
character,␈α
change␈α
it␈α
to␈↓∂␈α
\␈↓β␈α
(i.e.␈α
no␈α
change),␈α
turn␈α
on␈α
the␈α
simulator,␈α
define␈α
two
␈↓ ↓H␈βα`␈↓βfonts,␈αand␈αsuppress␈αthe␈↓¬␈α<CR><LF>␈↓β␈αat␈αthe␈αend␈αof␈αthe␈αline␈α--␈αNote␈αthat␈αbecause␈αmost␈αusers␈αof␈αPOX␈αprefer
␈↓ ↓H␈βα}␈↓βto␈α⊃use␈α⊂"␈↓∂\␈↓β"␈α⊂as␈α⊂their␈α⊂brick␈α⊂character,␈α⊂if␈α⊂you␈α⊂plan␈α⊂to␈α⊂use␈α⊂some␈α⊂character␈α⊂other␈α⊂than␈α⊂\␈α⊂as␈α⊂the␈α⊂brick
␈↓ ↓H␈ββ≤␈↓βcharacter␈αin␈αyour␈αfile,␈αand␈αyou␈αwant␈αyour␈αfile␈αto␈α
be␈α
callable␈α
(with␈α
minimum␈α
hassle)␈α
as␈α
a␈α
required␈α
source
␈↓ ↓H␈ββ9␈↓βfile␈α
from␈α
some␈α
other␈α
file,␈α
you␈α
should␈α
probably␈α
begin␈αyour␈αfile␈αwith␈↓∂␈α\|␈↓1␈↓β␈α(where␈↓␈α1␈↓β␈αdenotes␈αyour␈αlocal
␈↓ ↓H␈ββX␈↓βbrick␈αcharacter)␈αand␈αput␈↓␈α1␈↓∂|\␈↓β␈αat␈αthe␈αvery␈αend␈αof␈αthe␈αfile.␈α⊗--␈αNote␈αthat␈αthis␈αdoes␈αnot␈αapply␈αto␈αlibraries
␈↓ ↓H␈ββw␈↓βof␈α∂macros,␈α∂in␈α∂which␈α∂the␈↓␈α∂1␈↓∂|␈↓β␈α∞command␈α∞is␈α∞currently␈α∞ignored,␈α∞and␈α∞you␈α∞should␈α∞avoid␈α∞changing␈α∞the␈α∞brick
␈↓ ↓H␈β∧↔␈↓βcharacter␈α
to␈α
anything␈α
other␈α
than␈α
"\".
␈↓ α_␈β∧5␈↓∂∀∀␈↓β␈α
--␈α
assume␈α
this␈α
is␈αa␈αbare␈α(out-of-syntax)␈αoccurrence␈αof␈αthe␈αescape␈αcharacter␈αfor␈αpurpose␈αof
␈↓ ↓H␈β∧S␈↓βdefining␈α
it␈α
the␈α
old␈α
way␈α
(1973␈α
MAR-APR),␈α
followed␈α
by␈α
the␈α
beginning␈α
of␈α
a␈α
POX␈αcommand␈α--␈αjumps␈αinto
␈↓ ↓H␈β∧p␈↓βthe␈α
middle␈α
of␈α
the␈α
escape␈α
code␈α
at␈α
the␈α
point␈α
just␈α
after␈α
the␈↓␈α
1␈↓β␈α
has␈α
been␈α
recognized.
␈↓ α_␈β¬∂␈↓∂∀.␈↓β␈α⊂--␈α⊂assume␈α⊂this␈α⊂is␈α⊂an␈α⊂old-style␈↓␈α⊂1␈↓∂;␈↓β␈α⊂command␈α⊂(don't␈α∂rely␈α∂on␈α∂this,␈α∂it␈α∂is␈α∂incorrect)␈α∂--␈α∂ignore
␈↓ ↓H␈β¬/␈↓βthrough␈α
next␈α
<crlf>␈α
then␈α
jump␈α
into␈α
beginning␈α
of␈α
PASS-AS-IS␈α
loop.
␈↓ α_␈β¬M␈↓∂∀;␈↓β␈α
--␈α
assume␈α
this␈α
is␈α
a␈α
skip-to-crlf␈α
command␈α
--␈α
does␈α
it␈α
(see␈α
above)
␈↓ α_␈β¬k␈↓∂∀∃␈↓β␈α--␈αassumes␈αthe␈αfirst␈αis␈αthe␈αescape␈αcharacter␈αand␈αthat␈αthe␈αuser␈αis␈αconfused␈αabout␈αwhat␈αto␈αdo
␈↓ ↓H␈βε ␈↓βnext␈α
--␈α
jumps␈α
into␈α
the␈α
PASS-AS-IS␈αloop␈αjust␈αafter␈αa␈αcharacter␈αhas␈αbeen␈αread,␈αto␈αbe␈αable␈αto␈αact␈αupon
␈↓ ↓H␈βε'␈↓βthe␈α
∃␈α
character␈α
--␈α
because␈α
∃␈α
is␈α
not␈αthe␈αbrick␈αcharacter,␈αan␈αerror␈αwill␈αbe␈αgenerated␈αbecause␈αPOX␈αwill
␈↓ ↓H␈βεE␈↓βattempt␈α
to␈α
output␈α
the␈α
∃␈α
character␈α
but␈α
no␈α
font␈α
has␈α
yet␈α
been␈α
defined.
␈↓ ↓H␈βπ␈↓β(NOTE␈α
2)␈α
--␈α
THIS␈α
NOTE␈α
PURGED␈α
--␈α
SEE␈α
COMMANDS␈↓␈α
1␈↓∂`␈↓␈α
1␈↓β⊂␈↓␈α
1␈↓β⊃
␈↓ ↓H␈βπ>␈↓β(NOTE␈α3)␈α--␈αOf␈αcourse,␈αsince␈αthe␈αexpansion␈αof␈αa␈αmacro␈αgenerates␈αa␈αnew␈αstring␈αof␈αtext␈αas␈αif␈α
it␈α
had␈α
been
␈↓ ↓H␈βπ\␈↓βin␈αthe␈αinput␈αfile␈αoriginally,␈αsyntax␈αcan␈αbe␈αaltered␈αif␈αthe␈αbody␈αof␈αa␈αmacro␈αbegins␈αbut␈αdoes␈αnot␈αcomplete
␈↓ ↓H␈βπy␈↓βsome␈α
escape␈αsequence.␈α_Thus␈αthe␈αdefinition␈↓␈α1␈↓∂∞FOO[␈↓1␈↓∂oBIGMESS{4]␈↓β␈αwill␈αset␈αit␈αup␈αso␈αthat␈↓␈α1␈↓∂!FOO;␈↓β␈αwill
␈↓ ↓H␈βλ→␈↓βbegin␈α∂the␈α∂definition␈α∂of␈α∂an␈α∂atomic␈α∂text␈α∂overlay␈α∂but␈α∂not␈α∂finish␈α∂it,␈α∂until␈α∂some␈α∂time␈α∂later␈α∂in␈α∞the␈α∞file␈α∞an
␈↓ ↓H␈βλ7␈↓βunmatched␈α
"␈↓∂}␈↓β"␈α
occurs.␈α∀This␈α
can␈α
be␈α
confusing,␈α
so␈α
watch␈α
your␈α
macros␈α
carefully.
␈↓ ↓H␈βλs␈↓β(NOTE␈α4)␈α--␈αIn␈αnormal␈αmode,␈αletting␈αthe␈αsystem␈αdo␈α<LF>␈αitself␈αor␈α
simulating␈α
what␈α
it␈α
does,␈α
subscripts␈α
etc.
␈↓ ↓H␈β ⊃␈↓βcause␈α∞irregular␈α∞spacing␈α∞of␈α∞lines␈α∞because␈α∞each␈α∞line␈α
takes␈α
up␈α
just␈α
as␈α
much␈α
space␈α
as␈α
it␈α
needs␈α
to␈α
avoid
␈↓ ↓H␈β /␈↓βoverlap.␈α≡If␈α∞the␈α∞system␈α∞is␈α∞doing␈α∞<LF>'s␈α∞all␈α∞by␈α∞itself␈α∞(the␈α∞only␈α∞mode␈α∞currently␈α∞implemented),␈α∞the␈α∞POX
␈↓ ↓H␈β M␈↓βprogram␈αhasn't␈αthe␈αvagueest␈αidea␈αwhere␈αon␈αthe␈αpage␈αthe␈αcurrent␈αline␈αof␈αtext␈αwill␈αbe␈αlocated␈αwhen␈αthe
␈↓ ↓H␈β k␈↓βsystem␈αgets␈αaround␈αto␈αputting␈αthe␈αoutput␈αonto␈αthe␈α
XGP.␈α∀However,␈α
if␈α
POX␈α
is␈α
simulating␈α
what␈α
the␈α
system
␈↓ ↓H␈β
␈↓βwould␈α∞do,␈α∞then␈α∞POX␈α
is␈α
using␈α
register␈α
"␈↓∂;␈↓β"␈α
and␈α
a␈α
couple␈α
of␈α
internal␈α
locations␈α
to␈α
keep␈α
track␈α
of␈α
the␈α
last
␈↓ ↓H␈β
'␈↓βscan-line␈α
used,␈α
etc.
␈↓ α_␈β
E␈↓βIn␈α
pretty-spacing␈α
mode,␈α
the␈α
baselines␈α
of␈α
the␈αtext␈αlines␈αare␈αcaused␈αto␈αbe␈αevenly-spaced␈αeven␈αif
␈↓ ↓H␈β
c␈↓βoverlap␈α
occurs␈α
or␈α
font␈α
size␈α
varies.␈α~This␈α
is␈α
done␈α
by␈α
computing␈α
where␈α
the␈α
top␈α
scan␈α
line␈αshould␈αbe␈α(Y
␈↓ ↓H␈β↓␈↓βposition␈αof␈αbaseline␈αdesired,␈αminus␈αY␈αoffset␈αof␈αworst-case␈αsuperscript)␈αand␈αtelling␈α
the␈α
system␈α
to␈α
do␈α
the
␈↓ ↓H␈β∨␈↓βline␈αthere␈α(BLETCH!␈αBLETCH!).␈α∀This␈α
mode␈α
is␈α
obtained␈α
by␈α
setting␈α
the␈α
ε␈α
parameter␈α
to␈α
correct␈α
line␈α
spacing,
␈↓ ↓H␈β=␈↓βand␈α∀setting␈α∀the␈α∪λ␈α∪parameter␈α∪sufficiently␈α∪negative␈α∪to␈α∪allow␈α∪all␈α∪overlap␈α∪that␈α∪is␈α∪expected␈α∪without
␈↓ ↓H␈β[␈↓βspreading␈α
lines␈α
further␈α
apart.
␈↓ ↓H␈β⊗␈↓β(NOTE␈α∞5)␈α∞--␈α∞If␈α∞the␈α∞font␈α∞file␈α∞is␈α∞already␈α∞compiled,␈α∞the␈↓␈α∞1␈↓∂M␈↓β␈α∞command␈α∞merely␈α∞maps␈α∞from␈α∞the␈α∞logical␈α∞font
␈↓ ↓H␈β6␈↓βnumber␈α
you␈α
selected␈α
to␈α
the␈α
already-compiled␈α
system␈α
font␈α
number.␈α~If␈α
the␈α
font␈α
you␈αrequested␈αis␈αnew
␈↓ ↓H␈βT␈↓βbut␈α
the␈α
logical␈α
font␈α
number␈α
is␈α
already␈α
in␈α
use,␈α
it␈α
finds␈α
a␈α
slot,␈α
loads␈α
the␈α
font,␈α
and␈α
maps␈α
the␈α
font␈α
number.
␈↓ ε(␈β
∂␈↓TRIVIA
␈↓ ↓H␈β
2␈↓βPASACT␈α--␈αTell␈αuser,␈αat␈αPASACT+6␈αis␈αa␈αCAI␈α(NO-OP)␈αthat␈αis␈αexecuted␈αonly␈αwhen␈αPOX␈αtries␈αto␈αoutput␈αa
␈↓ ↓H␈β
P␈↓βsemicolon␈αat␈αpassis-level.␈α⊗Patching␈αit␈αto␈α
a␈α
HALT␈α
or␈α
setting␈α
a␈α
breakpoint␈α
there␈α
is␈α
useful␈α
for␈α
debugging␈α
a
␈↓ ↓H␈β
n␈↓βmysterous␈α
extra␈α
semicolon␈α
that␈α
you've␈α
created.␈α∀If␈α
that␈α
doesn't␈α
find␈α
it,␈α
try␈α
patching␈α
PUTCHR+1␈α
too.
␈↓ α_␈β∞*␈↓βAs␈α
long␈α
as␈α
there␈α
is␈α
room␈α
in␈α
your␈αmind,␈αI␈αmight␈αas␈αwell␈αmention␈αsome␈αmajor␈αdeficiencies␈αof␈αPOX.
␈↓ ↓H␈β∞H␈↓βThere␈α⊃is␈α⊃no␈α⊃way␈α⊃to␈α⊃place␈α⊃overlays␈α⊃in␈α⊃justified␈α⊃or␈α⊃center/rightified␈α⊃text.␈α There␈α⊂is␈α⊂no␈α⊂way␈α⊂to␈α⊂do
␈↓ ↓H␈β∞f␈↓βautomatic␈α
footnotes␈α
or␈α
indexes␈α
or␈α
cross-references.␈α∀Syntax␈α
is␈α
mostly␈α
strange.
␈↓ α_␈β∂"␈↓βONE␈αFINAL␈αTOUCH␈αTO␈αTHIS␈αWRITEUP␈α--␈αThe␈αspirograph␈αnear␈αthe␈αbottom␈αof␈αthis␈α
page␈α
(or␈α
the␈α
next
␈↓ π␈↓α 27␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 28␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓βif␈αthere␈αwasn't␈αroom␈αhere)␈αis␈αa␈αsimple␈αexample␈αof␈αhow␈αto␈αuse␈αrecursive␈α
macros␈α
to␈α
make␈α
program␈α
loops.
␈↓ ↓H␈β↓e␈↓βIt␈α
also␈α
shows␈α
you␈α
the␈α
overshoot␈α
that␈α
happens␈α
with␈α
almost-horizonal␈α
vectors␈α
of␈α
the␈↓␈α
1␈↓∂v␈↓β␈α
type.
␈↓ ↓H␈βα#␈↓∂_; DRAW SPIROGRAPH STARTING AT (X,Y)/D (x,y)/d offset by (8,9)
␈↓ ↓H␈βαA␈↓∂_∞SPIRO⊂_←X_→a_←Y_→b_←x_/d_+y_→y_+Y_→Y_←y_/d_¬x_→x_+X_→X_; wheel #1 perturbs #0
␈↓ ↓H␈βα←␈↓∂_←X_/D_+Y_→Y_←Y_/D_¬X_→X_; wheel #0
␈↓ ↓H␈βα⎇␈↓∂_←X_+8_→A_←a_+8_→a_←Y_+9_→B_←b_+9_→b_vabAB=2;⊃_; and offset for XGP
␈↓ ↓H␈ββ≠␈↓∂_;
␈↓ ↓H␈ββ9␈↓∂_∞SPIROS⊂_!SPIRO;_←I_-=1;_→I_?SPIROS;⊃_;
␈↓ ↓H␈ββW␈↓∂_;
␈↓ ↓H␈ββu␈↓∂_←=800;_→8_←=1750;_→9_;
␈↓ ↓H␈β∧∪␈↓∂_←=-44;_→X_←=26;_→Y_←=2;_→D_;
␈↓ ↓H␈β∧1␈↓∂_←=-29;_→x_←=69;_→y_←=1;_→d_;
␈↓ ↓H␈β∧O␈↓∂_←=200;_→I_!SPIROS;_;
␈∧↑π,␈gp ␈∧↑π,β?wα␈∧←π≡␈l('
␈∧←ε␈␈qd6π␈∧←ε␈∧e`β␈∧←π≡βipα␈∧dε←␈t␈E¬␈∧dε←εεPβ␈∧hπ8␈`V_∂␈∧hπ8β ⎇α␈∧kπF␈Q@⊂↔␈∧kπFα`↓∧α␈∧pεAπ@A∧␈∧pεA␈vuQ∧␈∧wπO␈&λ-␈∧wπOα8↓λα␈∧{ε␈{m↓¬α␈∧}¬k␈|*↓∃α␈∧␈ε+α↓0␈∧␈ε+␈{-uβ␈∧␈ε≠␈{S⎇α␈∧␈π[α∩↓∞α␈∧¬|␈|∂↓α␈∧∧ε$ *3¬␈∧∧ε$␈x#Z∧␈∧ε¬↑␈|F↓~α␈∧πε7pUε8␈∧πε7␈{∀mβ␈∧εD6U≠␈∧εD␈zmeβ␈∧
π`↓p↓⊃α␈∧∃¬?␈|⎇↓%α␈∧_πh↓N↓∃α␈∧≡ε>'ε␈∧≡ε␈y&`β␈∧ εX≠⊗
␈∧ εX␈z6Vβ␈∧)¬!␈⎇0↓/α␈∧1π;␈␈N↓∧α␈∧4πX␈␈7↓∩α␈∧6πm↓∃↓↔α␈∧7π≠␈␈]tα␈∧:εd∪≤ ␈∧:¬w∞~≥π␈∧:εd␈z≤Jβ␈∧:¬w␈zλcβ␈∧?πr␈␈⊗↓∨α␈∧A¬ ␈⎇]↓5α␈∧Eε|␈␈]dα␈∧Oλ ␈}t↓+α␈∧Uλ∀␈}i↓0α␈∧Vεi∂∨π␈∧Vεi␈z$Aβ␈∧Vπig↓∃α␈∧Wε↑␈␈PUα␈∧Y¬j⊂E⊗λ␈∧Y¬j␈zTbβ␈∧↑∧v␈} ↓8α␈∧eλ_␈}Q↓2α␈∧oεE␈␈≡Iα␈∧oλ!␈}?↓7α␈∧q¬B␈␈Neα␈∧t¬3␈␈Vlα␈∧t¬#␈␈Ytα␈∧uπ↑<↓⊂α␈∧vεg
L≡π␈∧vεg␈zY:β␈∧v¬`␈␈PUα␈∧y¬b⊃∞∩λ␈∧y¬b␈{∞↑β␈∧|¬∪␈␈lzα␈∧}∧k␈}2↓5α␈∧␈λ"␈})↓7α␈∧
¬α␈␈u↓↓α␈∧
∧¬y␈␈yEα␈∧
ε/␈}C>α␈∧
∧t↓¬α␈∧
λ'␈}↔↓:α␈∧
∪∧b→↓α␈∧
∀πM⊗↓πα␈∧
∃ε↑∞≡→π␈∧
∃ε↑␈{>6β␈∧
↔εU6α␈∧
_¬ck∪ε␈∧
_¬c␈{-Vβ␈∧
≥∧d␈}\↓1α␈∧
≡λ$␈⎇}↓8α␈∧
∧Y.↓∞α␈∧
)εu␈z⊗0β␈∧
+ε ␈⎇;7α␈∧
+π∪␈z}?β␈∧
,εV␈x⊂!∧␈∧
-∧FE↓∀α␈∧
-λ$␈⎇j↓8α␈∧
.π7␈␈x|α␈∧
0ε~αε)α␈∧
4εP⊃∞∩λ␈∧
4¬lπi↔∧␈∧
4εP␈|L6α␈∧
4¬l␈{-Jβ␈∧
5π.␈{"Lβ␈∧
8ε7␈q↔⊃π␈∧
:∧BZ↓∪α␈∧
;∧g␈␈↓(α␈∧
>¬v¬6≤β␈∧
>¬v␈{⊗Cβ␈∧
FπC␈{≤Wβ␈∧
Fπ≥␈␈`oα␈∧
Iε_␈α@␈∧
Kε!∧B∨β␈∧
Kε→␈|∃3α␈∧
L¬|βo∨α␈∧
L¬|␈{ <β␈∧
Mλ→␈⎇:↓3α␈∧
Oε:'6π∪␈∧
Oε:␈⎇f:α␈∧
Qε
αC&α␈∧
Qε
␈zE4β␈∧
V¬8↔␈∧
Vε␈␈␈V`α␈∧
W∧o␈␈"↓≥α␈∧
X∧.↓↓∃α␈∧
Zε≤␈{Z5α␈∧
\ε∀↓>+α␈∧
\ε∀␈z,β␈∧
]ε#␈xo%∧␈∧
]ε#z2α␈∧
↑πQ␈zs↑β␈∧
←ε`␈TVε∃␈∧
←ε`␈␈aQα␈∧
`¬*∩@⊂ ␈∧
aε@␈t/⊗ε␈∧
aε@∂Aα␈∧
eε2␈w∪≤∧␈∧
eε2#:α␈∧
eε∨␈}VBα␈∧
h¬~∞↔⊗π␈∧
jε"λY↔∧␈∧
kε~␈{4β␈∧
kλπ␈⎇↓*α␈∧
n∧␈␈␈D↓∂α␈∧
v°
L→π␈∧
v∧"↓A↓∀α␈∧
wε"␈ze8β␈∧
wε␈␈*Mα␈∧
zπZ␈z:bβ␈∧
}¬⊗␈␈\↓α␈∧∞↓∧␈≡ε␈∧∞↓¬t␈␈MPα␈∧∞↓¬%␈␈↑xα␈∧∞α¬a␈␈XYα␈∧∞¬π`␈z,eβ␈∧∞¬¬C␈␈chα␈∧∞¬πo␈|X↓≡α␈∧∞πε$␈z 9β␈∧∞λ¬R␈␈k←α␈∧∞λ¬2␈␈noα␈∧∞ ε~
∀ε␈∧∞∂ε/␈z*>β␈∧∞⊃∧w
λ≡ε␈∧∞⊗∧≥αβ↓∞α␈∧∞↔π[␈ytcβ␈∧∞≠πS␈| ↓⊂α␈∧∞∨∧i]!ε␈∧∞∨ε6␈zλBβ␈∧∞"εB␈z!Gβ␈∧∞&π\␈yOcβ␈∧∞'ε ∂≡∃π␈∧∞*π5␈{i↓↓α␈∧∞.∧f∞J∨π␈∧∞0ε[␈z=Tβ␈∧∞3∧"αK↓¬α␈∧∞5π⊗␈{&qβ␈∧∞6πU␈y⊂`β␈∧∞6εw␈znbβ␈∧∞A∧Z∂ π␈∧∞D¬s∂j_λ␈∧∞GπR␈xX↑∧␈∧∞M∧\∩$≤ ␈∧∞N∧+β'yα␈∧∞Q¬l⊂∀→λ␈∧∞VπG␈xεY∧␈∧∞[¬Z
V∨π␈∧∞c∧=∧∞kα␈∧∞eπ@␈w2U∧␈∧∞g¬N
⊗"ε␈∧∞m∧W→¬↔␈∧∞m¬=≤)¬␈∧∞t∧R¬⊗\β␈∧∞w¬.
7.¬␈∧∞y¬≥λ{6∧␈∧∞⎇∧nε<Lβ␈∧∞}¬
λ"<∧␈∧∂π'␈uLI¬␈∧∂
∧Z-6∞⊗␈∧∂∃π␈rm;ε␈∧∂#εl␈nε+ ␈∧∂$∧eαXα↓,␈∧∂+ε.␈H
≤␈∧∂+εL␈e≤
␈↓ π␈↓α 28␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 29␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ βs␈β↓H␈↓APPENDIX -- SUMMARY OF ALL POX COMMANDS
␈↓ ↓t␈β↓z␈↓IN THE APPROXIMATE CHRONOLOGICAL ORDER IN WHICH THEY WERE IMPLEMENTED
␈↓ ↓H␈βα≥␈↓∂page#
␈↓ ↓H␈βα;␈↓∂ ↓␈↓ αH[Original commands by R.E.Maas 1973]
␈↓ αH␈βαY␈↓∂;0␈↓ ∧HALL OTHERS, ILLEGAL
␈↓ ↓H␈βαw␈↓∂ 5␈↓ αH;1 |␈↓ ∧HSET NEW ESCAPE
␈↓ ↓H␈ββ∃␈↓∂ 3␈↓ αH;2 M␈↓ ∧HMAKE A NEW FONT
␈↓ ↓H␈ββ3␈↓∂ 4␈↓ αH;3 ;␈↓ ∧HIGNORE THRU LF ETC.
␈↓ ↓H␈ββQ␈↓∂ 4␈↓ αH;4 ,␈↓ ∧HIGNORE THRU FF
␈↓ ↓H␈ββo␈↓∂ 3␈↓ αH;5 F␈↓ ∧HFONT SELECT
␈↓ ↓H␈β∧
␈↓∂ 3␈↓ αH;6 f␈↓ ∧HFONT SELECT FOR ONE CHARACTER
␈↓ ↓H␈β∧+␈↓∂12␈↓ αH;7 S␈↓ ∧HSAMPLE
␈↓ ↓H␈β∧I␈↓∂ 4␈↓ αH;10 J␈↓ ∧HJUSTIFY
␈↓ ↓H␈β∧g␈↓∂ 9␈↓ αH;11 j␈↓ ∧HJUSTIFY
␈↓ ↓H␈⬬␈↓∂ 4␈↓ αH;12 C␈↓ ∧HCENTER
␈↓ ↓H␈β¬#␈↓∂ 9␈↓ αH;13 c␈↓ ∧HCENTER
␈↓ ↓H␈β¬A␈↓∂ 4␈↓ αH;14 R␈↓ ∧HRIGHTIFY
␈↓ ↓H␈β¬←␈↓∂ 9␈↓ αH;15 r␈↓ ∧HRIGHTIFY
␈↓ ↓H␈β¬⎇␈↓∂ 8␈↓ αH;16 ←+-*/\¬∧∨%L~_ Q-REGISTER ARITHMETIC
␈↓ ↓H␈βε≠␈↓∂ 8␈↓ αH;17 →␈↓ ∧HQ REGISTER DEPOSIT
␈↓ ↓H␈βε9␈↓∂ 8*␈↓ αH;62 ↑↓␈↓ ∧HQ-REGISTER SUB/SUP-SCRIPT [GENERATES ESCAPE SEQ. VIA XCT W]
␈↓ ↓H␈βεW␈↓∂ 8␈↓ αH;20 ∩∪⊗␈↓ ∧HMOVE BASELINE.
␈↓ αH␈βπ∪␈↓∂[Added by R.E.Gorin 1973-74]
␈↓ ↓H␈βπ1␈↓∂ 8␈↓ αH;21 U␈↓ ∧HUNDERSCORE
␈↓ ↓H␈βπO␈↓∂10␈↓ αH;22 P␈↓ ∧HPUSH
␈↓ ↓H␈βπm␈↓∂10␈↓ αH;23 p␈↓ ∧HPOP
␈↓ ↓H␈βλ␈↓∂ 9␈↓ αH;24 '␈↓ ∧HQUOTE WITH RUBOUT <<NOT RECOMMENDED>>
␈↓ ↓H␈βλ)␈↓∂11␈↓ αH;25 λ␈↓ ∧HSET SPECIAL LINE SPACE FROM AC0
␈↓ ↓H␈βλG␈↓∂10␈↓ αH;26 V␈↓ ∧HVECTOR
␈↓ ↓H␈βλe␈↓∂11␈↓ αH;27 Y␈↓ ∧HSet Y position
␈↓ αH␈β !␈↓∂[Added by R.E.Maas 1974-75]
␈↓ ↓H␈β ?␈↓∂14,16␈↓ αH;30 ∞␈↓ ∧HDefine macro
␈↓ ↓H␈β ]␈↓∂15,17␈↓ αH;31 !␈↓ ∧HCall macro
␈↓ ↓H␈β {␈↓∂15,17␈↓ αH;32 ?␈↓ ∧HIf QREGAC>0 then call macro else scan but null semantics
␈↓ ↓H␈β
→␈↓∂15␈↓ αH;33 @␈↓ ∧HRequire source file, then return
␈↓ ↓H␈β
7␈↓∂15␈↓ αH;34 α␈↓ ∧HJump to file, don't return
␈↓ ↓H␈β
U␈↓∂10*␈↓ αH;26 v␈↓ ∧Hpretty vector
␈↓ ↓H␈β
s␈↓∂10␈↓ αH;35 Q␈↓ ∧HPUSH WITH ARG
␈↓ ↓H␈β⊃␈↓∂10␈↓ αH;36 q␈↓ ∧HPOP WITH ARG
␈↓ ↓H␈β/␈↓∂13␈↓ αH;37 o␈↓ ∧HDEFINE ATOMIC TEXT OVERLAY
␈↓ ↓H␈βM␈↓∂13␈↓ αH;40 O␈↓ ∧HOUTPUT OVERLAY
␈↓ ↓H␈βk␈↓∂13␈↓ αH;41 123456␈↓ ∧HLOAD QREGAC WITH PARAMETER FROM OVERLAY <<5,6 NOT WORKING>>
␈↓ ↓H␈β ␈↓∂23␈↓ αH;42 `␈↓ ∧H[TEMPORARY] SET UP VERSION FLAGS <<NOT RECOMMENDED>>
␈↓ ↓H␈β'␈↓∂13␈↓ αH;43 &␈↓ ∧HCOMBINE SEVERAL OVERLAYS INTO ONE, WITH OFFSETS EACH
␈↓ ↓H␈βE␈↓∂14␈↓ αH;44 ∂␈↓ ∧HRENAME OVERLAY IN COMPLICATED WAY
␈↓ ↓H␈βc␈↓∂13␈↓ αH;45 :␈↓ ∧HCLOBBER SELECTED SIZE PARAMETER OF OVERLAY
␈↓ ↓H␈β
↓␈↓∂11␈↓ αH;46 ε␈↓ ∧HSET MINIMUM BASELINE SPACING, USED IN CONJUNCTION WITH λ
␈↓ ↓H␈β
∨␈↓∂ 4␈↓ αH;47 <SP><TB>␈↓ ∧HIGNORE SPACES UNTIL ; SEEN (FOR PRETTY SOURCE FILES)
␈↓ ↓H␈β
=␈↓∂ 4␈↓ αH;50 <VT>N␈↓ ∧HBREAK TO NEXT LINE HERE WITHOUT AFFECTING SYNTAX
␈↓ ↓H␈β
[␈↓∂12␈↓ αH;51 u␈↓ ∧HCALLI UUO
␈↓ ↓H␈β
y␈↓∂ 9␈↓ αH;52 "␈↓ ∧HQUOTE THE NEXT CHARACTER (WITHOUT RUBOUT UNLESS NEEDED)
␈↓ αH␈β∞↔␈↓∂;53 n␈↓ ∧HNO PAGE CHANGE NEXT TIME <<NOT SUPPORTED>>
␈↓ ↓H␈β∞5␈↓∂10␈↓ αH;54 A␈↓ ∧HCVT QREG TO CHARACTER (WITHOUT RUBOUT UNLESS NEEDED) AND OUTPUT
␈↓ ↓H␈β∞S␈↓∂23␈↓ αH;55 ⊂␈↓ ∧HTURN ON DEBUG FLAGS -- VLEVE←VLEVEL∨ARG
␈↓ ↓H␈β∞q␈↓∂23␈↓ αH;56 ⊃␈↓ ∧HTURN OFF DEBUG FLAGS -- VLEVEL←VLEVEL∧(¬ARG)
␈↓ ↓H␈β∂∂␈↓∂ 8␈↓ αH;57 {[␈↓ ∧HSTART UNDERLINE [WRITES ESCAPE SEQUENCE VIA XCT W]
␈↓ ↓H␈β∂-␈↓∂ 8␈↓ αH;60 }]␈↓ ∧HSTOP UNDERLINE [DITTO]
␈↓ π␈↓α 29␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ π␈↓α 30␈↓ βy␈β↓α␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ ↓H␈β↓H␈↓∂10␈↓ αH;61 D␈↓ ∧HCONVERT DECIMAL TO STRING MACRO AND SPLICE NOW [INPDL]
␈↓ ↓H␈β↓f␈↓∂13*␈↓ αH;40 W␈↓ ∧HSAME AS O BUT FORCES ON SAME PAGE, DOES NOT AFFECT PAGE PRINTER
␈↓ ↓H␈βα∧␈↓∂15␈↓ αH;63 β␈↓ ∧HDO LOOKUP ON FILE, WARN IF MISSING, BUT DON'T READ IT
␈↓ ↓H␈βα"␈↓∂15*␈↓ αH;33 ∀␈↓ ∧HSCAN OF LIBRARY OF MACRO DEFINITIONS
␈↓ ↓H␈βα@␈↓∂10␈↓ αH;64 #␈↓ ∧HPUSH FONT# ON STACK
␈↓ ↓H␈βα↑␈↓∂10␈↓ αH;65 G␈↓ ∧HPOP FONT# FROM STACK AND SELECT
␈↓ ↓H␈βα|␈↓∂11␈↓ αH;66 y␈↓ ∧HFUDGE Y0 PARAMETERS TO ADJUST VERTICAL POS.
␈↓ ↓H␈ββ~␈↓∂11␈↓ αH;67 BbTt␈↓ ∧HSET AND READ BOTTOM MARGIN (TMAR+PMAR) OR TOP MARGIN
␈↓ ↓H␈ββ8␈↓∂22␈↓ αH;70 <=>␈↓ ∧HALTERNATE-OUTPUT-FILE, OPEN OUTPUT-TO CLOSE
␈↓ αH␈ββt␈↓∂[Not yet implemented -- 1975.Nov]
␈↓ αH␈β∧∩␈↓∂;N1 X␈↓ ∧H(RESERVED FOR EXTENDED-SCANNER TO BE IMPLEMENTED SOMEDAY)
␈↓ αH␈β∧0␈↓∂;N2 π␈↓ ∧H(RESERVED FOR ILLEGAL COMMAND TO ENTER DEBUG PACKAGE)
␈↓ β-␈β∧v␈↓INDEX TO POX COMMANDS IN ASCII-ALPHABETICAL ORDER
␈↓ αk␈β¬#␈↓NUMBER REFERS TO SUMMARY OF COMMANDS IN PREVIOUS TABLE
␈↓ α/␈β¬P␈↓AN ASTERISK HERE MEANS IT'S NOT LOCATED IN NUMERICAL ORDER THERE
␈↓ αH␈βεα␈↓∂xx0␈↓ βHxx1␈↓ ∧Hxx2␈↓ ¬Hxx3␈↓ εHxx4␈↓ πHxx5␈↓ λHxx6␈↓ Hxx7
␈↓ ↓H␈βε/␈↓∂00x␈↓ αHNUL 00␈↓ βH↓ 62*␈↓ ∧Hα 34␈↓ ¬Hβ 63␈↓ εH∧ 16␈↓ πH¬ 16␈↓ λHε 46␈↓ Hπ N2
␈↓ ↓H␈βε\␈↓∂01x␈↓ αHλ 25␈↓ βHTB 47␈↓ ∧HLF 00␈↓ ¬H 50␈↓ εHFF 00␈↓ πHCR 00␈↓ λH∞ 30␈↓ H∂ 44
␈↓ ↓H␈βπ ␈↓∂02x␈↓ αH⊂ 55␈↓ βH⊃ 56␈↓ ∧H∩ 20␈↓ ¬H∪ 20␈↓ εH∀ 33*␈↓ πH∃␈↓ λH⊗ 20␈↓ H↔
␈↓ ↓H␈βπ6␈↓∂03x␈↓ αH_ 16␈↓ βH→ 17␈↓ ∧H~ 16␈↓ ¬H≠␈↓ εH≤␈↓ πH≥␈↓ λH≡␈↓ H∨ 16
␈↓ ↓H␈βπc␈↓∂04x␈↓ αHSP 47␈↓ βH! 31␈↓ ∧H" 52␈↓ ¬H# 64␈↓ εH$␈↓ πH% 16␈↓ λH& 43␈↓ H' 24
␈↓ ↓H␈βλ⊂␈↓∂05x␈↓ αH( (?)␈↓ βH)␈↓ ∧H* 16␈↓ ¬H+ 16␈↓ εH, 04␈↓ πH- 16␈↓ λH. 03␈↓ H/ 16
␈↓ ↓H␈βλ=␈↓∂06x␈↓ αH0␈↓ βH1 41␈↓ ∧H2 41␈↓ ¬H3 41␈↓ εH4 41␈↓ πH5 (41)␈↓ λH6 (41)␈↓ H7 (?)
␈↓ ↓H␈βλj␈↓∂07x␈↓ αH8 30␈↓ βH9␈↓ ∧H: 45␈↓ ¬H; 03␈↓ εH< 70␈↓ πH= 70␈↓ λH> 70␈↓ H? 32
␈↓ ↓H␈β ↔␈↓∂10x␈↓ αH@ 33␈↓ βHA 54␈↓ ∧HB 67␈↓ ¬HC 12␈↓ εHD 61␈↓ πHE␈↓ λHF 05␈↓ HG 65
␈↓ ↓H␈β D␈↓∂11x␈↓ αHH␈↓ βHI␈↓ ∧HJ 10␈↓ ¬HK␈↓ εHL 16␈↓ πHM 02␈↓ λHN 50␈↓ HO 40
␈↓ ↓H␈β q␈↓∂12x␈↓ αHP 22␈↓ βHQ 35␈↓ ∧HR 14␈↓ ¬HS 07␈↓ εHT 67␈↓ πHU 21␈↓ λHV 26␈↓ HW 40*
␈↓ ↓H␈β
≡␈↓∂13x␈↓ αHX N1␈↓ βHY 27␈↓ ∧HZ␈↓ ¬H[ 57␈↓ εH\ 16␈↓ πH] 60␈↓ λH↑ 62*␈↓ H← 16
␈↓ ↓H␈β
K␈↓∂14x␈↓ αH` 42␈↓ βHa␈↓ ∧Hb 67␈↓ ¬Hc 13␈↓ εHd␈↓ πHe␈↓ λHf 06␈↓ Hg
␈↓ ↓H␈β
x␈↓∂15x␈↓ αHh␈↓ βHi␈↓ ∧Hj 11␈↓ ¬Hk␈↓ εHl␈↓ πHm␈↓ λHn 53␈↓ Ho 37
␈↓ ↓H␈β%␈↓∂16x␈↓ αHp 23␈↓ βHq 36␈↓ ∧Hr 15␈↓ ¬Hs␈↓ εHt 67␈↓ πHu 51␈↓ λHv 26*␈↓ Hw (26)
␈↓ ↓H␈βR␈↓∂17x␈↓ αHx␈↓ βHy 66␈↓ ∧Hz␈↓ ¬H{ 57␈↓ εH| 01␈↓ πHALT 00␈↓ λH} 60␈↓ HBS 00
␈↓ α_␈β,␈↓β(To␈αuse␈αthe␈αabove␈αtable␈αto␈αlocate␈αthe␈αcommand␈αcorresponding␈αto␈αa␈αparticular␈αcharacter,␈αlook␈αup
␈↓ ↓H␈βY␈↓βthe␈α∩character␈α∩according␈α∩to␈α∩ASCII␈α∩number,␈α∩use␈α∩the␈α∩numerical␈α∩entry␈α∩in␈α∩the␈α⊃table␈α⊃to␈α⊃reference␈α⊃the
␈↓ ↓H␈β
ε␈↓βpreceeding␈α
table,␈αand␈αread␈αthe␈αdescription␈αon␈αthat␈αtable.␈α_That␈αfirst␈αtable␈αnow␈αincludes␈αpage␈αnumbers
␈↓ ↓H␈β
3␈↓βfor␈αyour␈αconvenience␈αin␈αlocating␈αthe␈αfull␈αdescription␈αelsewhere␈αin␈αthis␈αwriteup.␈α⊗The␈αtable␈αof␈αcontents,
␈↓ ↓H␈β
`␈↓βhowever,␈α
will␈α
usually␈α
be␈α
more␈α
useful␈α
for␈α
locating␈α
general␈α
types␈α
of␈α
commands.)
␈↓ π␈↓α 30␈↓ βy␈β⊂ ␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page
␈↓ βf␈β↓H␈↓PROTOTYPE OVERLAY XEROGRAPHICS -- WRITEUP
␈↓ ε
␈β↓u␈↓CONTENTS
␈↓ ↓;␈βαT␈↓β(page numbers here correspond to headings/footings -- add one for XSPOOL command page numbers) ↓↓
␈↓ ↓H␈βα|␈↓Contents [this page, generated after p.30, bound before p.1]␈↓α␈↓ ]i
␈∧β≤↓H↓
≡␈∧β!↓H↓
≡␈↓ ↓H␈ββ)␈↓Introduction␈↓ G 1
␈↓ α(␈ββV␈↓Sample POX manuscript␈↓ G 2
␈↓ α(␈β∧β␈↓This writeup, organization, modes, notation␈↓ G 2
␈↓ α(␈β∧0␈↓BNF notation used in this writeup␈↓ G 3
␈∧∧P↓H↓
≡␈∧∧U↓H↓
≡␈↓ ↓H␈β∧]␈↓Basic commands␈↓ G 3
␈↓ α(␈β¬
␈↓Table of modes and commands␈↓ G 5
␈↓ α(␈β¬7␈↓Examples␈↓ G 5
␈↓ ↓H␈β¬d␈↓Linefeed simulator␈↓ G 6
␈∧ε∧↓H↓
≡␈∧ε ↓H↓
≡␈↓ ↓H␈βε⊃␈↓Registers and XY coordinates␈↓ G 6
␈↓ α(␈βε>␈↓Arguments to commands␈↓ G 7
␈↓ α(␈βεk␈↓Commands (most of the POX commands are in this section...)␈↓ G 8
␈↓ α(␈βπ_␈↓...Vectors...␈↓ @10
␈↓ α(␈βπE␈↓...Interline spacing...␈↓ @11
␈↓ α(␈βπr␈↓Examples␈↓ @12
␈∧λ∩↓H↓
≡␈∧λ↔↓H↓
≡␈↓ ↓H␈βλ∨␈↓Overlays␈↓ @13
␈↓ α(␈βλL␈↓Examples␈↓ @14
␈∧λl↓H↓
≡␈∧λq↓H↓
≡␈↓ ↓H␈βλy␈↓Macros without arguments, require source files␈↓ @14
␈↓ α(␈β &␈↓Examples␈↓ @16
␈∧ F↓H↓
≡␈∧ K↓H↓
≡␈↓ ↓H␈β S␈↓Macros with arguments␈↓ @16
␈↓ α(␈β
␈↓Commands␈↓ @16
␈↓ α(␈β
-␈↓Detailed algorithm of evaluation␈↓ @18
␈↓ α(␈β
Z␈↓Examples␈↓ @19
␈↓ α(␈βπ␈↓Detailed examples of argument evaluation␈↓ @19
␈↓ α(␈β4␈↓Advanced examples (MONTH<N>, EVAL, RECURSE, DEFCONT, EVERYPAGE) ␈↓ @20
␈↓ ↓H␈βa␈↓Alternate output (text) files␈↓ @22
␈∧↓↓H↓
≡␈∧ε↓H↓
≡␈↓ ↓H␈β∞␈↓Special-feature bits␈↓ @23
␈↓ α(␈β;␈↓Batch 0␈↓ @23
␈↓ α(␈βh␈↓Batch 1␈↓ @25
␈↓ α(␈β
∃␈↓Examples␈↓ @25
␈∧
5↓H↓
≡␈∧
:↓H↓
≡␈↓ ↓H␈β
B␈↓Remarks on using the POX program␈↓ @25
␈↓ α(␈β
o␈↓Backtrace/Error package␈↓ @25
␈↓ α(␈β∞≤␈↓Known bugs in POX (by number)␈↓ @26
␈↓ α(␈β∞I␈↓Notes (by number)␈↓ @26
␈↓ α(␈β∞v␈↓Trivia␈↓ @27
␈∧∂⊗↓H↓
≡␈∧∂≠↓H↓
≡␈↓ ↓H␈β∂#␈↓Appendix␈↓ @29
␈↓ α(␈β∂P␈↓Chronological list of commands (with page references)␈↓ @29
␈↓ α(␈β∂⎇␈↓ASCII sequence table␈↓ @30
␈↓ ⊂␈↓α i␈↓ ∧α␈β⊂9␈↓αPOX writeup, last edited 1976 DEC 5 6:12 -- page